Skip to content

Commit

Permalink
Adding a check to make sure that the value is a simple value before c…
Browse files Browse the repository at this point in the history
…omparing to a string.
  • Loading branch information
Zoramite committed Sep 26, 2010
1 parent e40ce30 commit 37a3e0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mongodb/inc/resource/base/model.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ component extends="algid.inc.resource.base.model" {

// Remove any blanks so they don't appear in the db
for( key in result ) {
if(result[key] == '') {
if(isSimpleValue(result[key]) && result[key] == '') {
structDelete(result, key);
}
}
Expand Down

0 comments on commit 37a3e0c

Please sign in to comment.