Skip to content

Commit dd5a93e

Browse files
committed
fix false boolean case
1 parent cfd0a9f commit dd5a93e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

MysqliDb.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ protected function _buildQuery($numRows = null, $tableData = null)
599599
$comparison = ' '.$key.' ? ';
600600
$this->_bindParam ($val);
601601
}
602-
} else if ($value[1] == null) {
602+
} else if ($value[1] === null) {
603603
$comparison = '';
604604
} else {
605605
$comparison = ' = ? ';

tests.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
$db = new Mysqlidb('localhost', 'root', '', 'testdb');
66
if(!$db) die("Database error");
77

8-
$prefix = 'prefix_';
9-
$db->setPrefix($prefix)
8+
$prefix = 't_';
9+
$db->setPrefix($prefix);
1010

1111
$tables = Array (
1212
'users' => Array (

0 commit comments

Comments
 (0)