diff options
author | Andrey Andreev <narf@devilix.net> | 2016-10-22 14:37:15 +0200 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2016-10-22 14:37:15 +0200 |
commit | dae08b59fd808c3baf838161223fdba2a80f1610 (patch) | |
tree | bb7877dd3d4bcaceb78d1461554b8e03794c1fa7 | |
parent | 4ffe6345690f81872d0937e562faaf75f3185b6a (diff) |
Allow binding 0, null out of array in query()
-rw-r--r-- | system/database/DB_driver.php | 2 |
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; } |