diff --git a/MysqliDb.php b/MysqliDb.php index 53ebd245..738d9230 100644 --- a/MysqliDb.php +++ b/MysqliDb.php @@ -10,7 +10,7 @@ * @copyright Copyright (c) 2010-2017 * @license http://opensource.org/licenses/gpl-3.0.html GNU Public License * @link http://github.com/joshcam/PHP-MySQLi-Database-Class - * @version 2.9.2 + * @version 2.9.3 */ class MysqliDb @@ -968,12 +968,6 @@ public function delete($tableName, $numRows = null) */ public function where($whereProp, $whereValue = 'DBNULL', $operator = '=', $cond = 'AND') { - // forkaround for an old operation api - if (is_array($whereValue) && ($key = key($whereValue)) != "0") { - $operator = $key; - $whereValue = $whereValue[$key]; - } - if (count($this->_where) == 0) { $cond = ''; } diff --git a/tests/mysqliDbTests.php b/tests/mysqliDbTests.php index bd35bc30..dd74b578 100644 --- a/tests/mysqliDbTests.php +++ b/tests/mysqliDbTests.php @@ -251,7 +251,7 @@ function createTable ($name, $data) { //$users = $db->get("users"); //print_r ($users); -$db->where("firstname", Array ('LIKE' => '%John%')); +$db->where("firstname", '%John%', 'like'); $users = $db->get("users"); if ($db->count != 1) { echo "Invalid insert count in LIKE: ".$db->count;