commit | 694096e5923057bec182726ef6fc8dbd2908978d | [log] [tgz] |
---|---|---|
author | Derek Allard <derek.allard@ellislab.com> | Wed Jun 04 16:37:00 2008 +0000 |
committer | Derek Allard <derek.allard@ellislab.com> | Wed Jun 04 16:37:00 2008 +0000 |
tree | e47cc0a8ddb616cc1aa13b7c392446125a473ee3 | |
parent | a5481acfbee750e5295713ad250dbb2573d374b0 [diff] |
change AR behaviour so that blank values result in empty quotes
diff --git a/system/database/DB_active_rec.php b/system/database/DB_active_rec.php index 05a0435..17cdc32 100644 --- a/system/database/DB_active_rec.php +++ b/system/database/DB_active_rec.php
@@ -454,13 +454,11 @@ $k .= ' ='; } - if ($v !== '' AND $v !== NULL) - { - if ($escape === TRUE) - { - $v = ' '.$this->escape($v); - } + if ($v !== NULL AND $escape === TRUE) + { + $v = ' '.$this->escape($v); } + } else {