Commit bbb7b8b6 authored by Richard Weinhold's avatar Richard Weinhold

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
parent f724dff8
...@@ -1396,7 +1396,7 @@ class MysqliDb ...@@ -1396,7 +1396,7 @@ class MysqliDb
if (is_array($val)) { if (is_array($val)) {
$this->_bindParams($val); $this->_bindParams($val);
} elseif ($val === null) { } elseif ($val === null) {
$this->_query .= $operator . " NULL"; $this->_query .= ' ' . $operator . " NULL";
} elseif ($val != 'DBNULL' || $val == '0') { } elseif ($val != 'DBNULL' || $val == '0') {
$this->_query .= $this->_buildPair($operator, $val); $this->_query .= $this->_buildPair($operator, $val);
} }
......
<? <?php
error_reporting (E_ALL|E_STRICT); error_reporting (E_ALL|E_STRICT);
require_once ("../MysqliDb.php"); require_once ("../MysqliDb.php");
require_once ("../dbObject.php"); require_once ("../dbObject.php");
......
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