summaryrefslogtreecommitdiffstats
path: root/system/database
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2008-04-06 21:20:17 +0200
committerDerek Allard <derek.allard@ellislab.com>2008-04-06 21:20:17 +0200
commit96863ce12d88b2126b80bf1b00a73eed1ad6be86 (patch)
tree0bf388460d73576fd7cab5a310e467492946ed45 /system/database
parente808aac2627c35d50082f814d9778c4bf976011c (diff)
testing an escape issue
Diffstat (limited to 'system/database')
-rw-r--r--system/database/DB_active_rec.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/system/database/DB_active_rec.php b/system/database/DB_active_rec.php
index 23a5a7adf..b2638f25c 100644
--- a/system/database/DB_active_rec.php
+++ b/system/database/DB_active_rec.php
@@ -447,7 +447,10 @@ class CI_DB_active_record extends CI_DB_driver {
$k .= ' =';
}
- $v = ' '.$this->escape($v);
+ if ($v != '')
+ {
+ $v = ' '.$this->escape($v);
+ }
}
else
{