commit | dae08b59fd808c3baf838161223fdba2a80f1610 | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@devilix.net> | Sat Oct 22 15:37:15 2016 +0300 |
committer | Andrey Andreev <narf@devilix.net> | Sat Oct 22 15:37:15 2016 +0300 |
tree | bb7877dd3d4bcaceb78d1461554b8e03794c1fa7 | |
parent | 4ffe6345690f81872d0937e562faaf75f3185b6a [diff] [blame] |
Allow binding 0, null out of array in query()
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php index 848516a..7ae52a3 100644 --- a/system/database/DB_driver.php +++ b/system/database/DB_driver.php
@@ -980,7 +980,7 @@ */ 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; }