Skip to content

Commit bbb7b8b

Browse files
committed
fixed missing space before operator when comparing against IS
- added missing space ' ' befor appending operator to query in _buildCondition() default statement for NULL comparison - changed shorthand php `<?` to default `<?php` in dbObjectTests for better downward compability
1 parent f724dff commit bbb7b8b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

MysqliDb.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1396,7 +1396,7 @@ protected function _buildCondition($operator, &$conditions)
13961396
if (is_array($val)) {
13971397
$this->_bindParams($val);
13981398
} elseif ($val === null) {
1399-
$this->_query .= $operator . " NULL";
1399+
$this->_query .= ' ' . $operator . " NULL";
14001400
} elseif ($val != 'DBNULL' || $val == '0') {
14011401
$this->_query .= $this->_buildPair($operator, $val);
14021402
}

tests/dbObjectTests.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?
1+
<?php
22
error_reporting (E_ALL|E_STRICT);
33
require_once ("../MysqliDb.php");
44
require_once ("../dbObject.php");

0 commit comments

Comments
 (0)