summaryrefslogtreecommitdiffstats
path: root/system/database
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2016-10-22 14:37:15 +0200
committerAndrey Andreev <narf@devilix.net>2016-10-22 14:37:15 +0200
commitdae08b59fd808c3baf838161223fdba2a80f1610 (patch)
treebb7877dd3d4bcaceb78d1461554b8e03794c1fa7 /system/database
parent4ffe6345690f81872d0937e562faaf75f3185b6a (diff)
Allow binding 0, null out of array in query()
Diffstat (limited to 'system/database')
-rw-r--r--system/database/DB_driver.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php
index 848516adc..7ae52a307 100644
--- a/system/database/DB_driver.php
+++ b/system/database/DB_driver.php
@@ -980,7 +980,7 @@ abstract class CI_DB_driver {
*/
public function compile_binds($sql, $binds)
{
- if (empty($binds) OR empty($this->bind_marker) OR strpos($sql, $this->bind_marker) === FALSE)
+ if (empty($this->bind_marker) OR strpos($sql, $this->bind_marker) === FALSE)
{
return $sql;
}