Commit dd5a93e5 authored by Alexander Butenko's avatar Alexander Butenko

fix false boolean case

parent cfd0a9f9
......@@ -599,7 +599,7 @@ class MysqliDb
$comparison = ' '.$key.' ? ';
$this->_bindParam ($val);
}
} else if ($value[1] == null) {
} else if ($value[1] === null) {
$comparison = '';
} else {
$comparison = ' = ? ';
......
......@@ -5,8 +5,8 @@ error_reporting(E_ALL);
$db = new Mysqlidb('localhost', 'root', '', 'testdb');
if(!$db) die("Database error");
$prefix = 'prefix_';
$db->setPrefix($prefix)
$prefix = 't_';
$db->setPrefix($prefix);
$tables = Array (
'users' => Array (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment