Commit dd5a93e5 authored by Alexander Butenko's avatar Alexander Butenko

fix false boolean case

parent cfd0a9f9
...@@ -599,7 +599,7 @@ class MysqliDb ...@@ -599,7 +599,7 @@ class MysqliDb
$comparison = ' '.$key.' ? '; $comparison = ' '.$key.' ? ';
$this->_bindParam ($val); $this->_bindParam ($val);
} }
} else if ($value[1] == null) { } else if ($value[1] === null) {
$comparison = ''; $comparison = '';
} else { } else {
$comparison = ' = ? '; $comparison = ' = ? ';
......
...@@ -5,8 +5,8 @@ error_reporting(E_ALL); ...@@ -5,8 +5,8 @@ error_reporting(E_ALL);
$db = new Mysqlidb('localhost', 'root', '', 'testdb'); $db = new Mysqlidb('localhost', 'root', '', 'testdb');
if(!$db) die("Database error"); if(!$db) die("Database error");
$prefix = 'prefix_'; $prefix = 't_';
$db->setPrefix($prefix) $db->setPrefix($prefix);
$tables = Array ( $tables = Array (
'users' => 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