Commit 05c2463e authored by Alexander Butenko's avatar Alexander Butenko

Avoid late php api usage

parent ce7d9e8b
...@@ -619,7 +619,9 @@ class MysqliDb ...@@ -619,7 +619,9 @@ class MysqliDb
//Prepair the where portion of the query //Prepair the where portion of the query
$this->_query .= ' WHERE '; $this->_query .= ' WHERE ';
$i = 0; $i = 0;
foreach ($this->_where as list($concat, $wValue, $wKey)) { foreach ($this->_where as $cond) {
list ($concat, $wValue, $wKey) = $cond;
// if its not a first condition insert its concatenator (AND or OR) // if its not a first condition insert its concatenator (AND or OR)
if ($i++ != 0) if ($i++ != 0)
$this->_query .= " $concat "; $this->_query .= " $concat ";
......
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