summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-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
{