summaryrefslogtreecommitdiffstats
path: root/system/database
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2008-06-04 18:37:00 +0200
committerDerek Allard <derek.allard@ellislab.com>2008-06-04 18:37:00 +0200
commit694096e5923057bec182726ef6fc8dbd2908978d (patch)
treee47cc0a8ddb616cc1aa13b7c392446125a473ee3 /system/database
parenta5481acfbee750e5295713ad250dbb2573d374b0 (diff)
change AR behaviour so that blank values result in empty quotes
Diffstat (limited to 'system/database')
-rw-r--r--system/database/DB_active_rec.php10
1 files changed, 4 insertions, 6 deletions
diff --git a/system/database/DB_active_rec.php b/system/database/DB_active_rec.php
index 05a04350d..17cdc3220 100644
--- a/system/database/DB_active_rec.php
+++ b/system/database/DB_active_rec.php
@@ -454,13 +454,11 @@ class CI_DB_active_record extends CI_DB_driver {
$k .= ' =';
}
- if ($v !== '' AND $v !== NULL)
- {
- if ($escape === TRUE)
- {
- $v = ' '.$this->escape($v);
- }
+ if ($v !== NULL AND $escape === TRUE)
+ {
+ $v = ' '.$this->escape($v);
}
+
}
else
{