Commit a0757e27 authored by Alexander Butenko's avatar Alexander Butenko

Fix warning on update if update data have only function calls

parent f96601ec
...@@ -620,10 +620,9 @@ class MysqliDb ...@@ -620,10 +620,9 @@ class MysqliDb
// Prepare query // Prepare query
$stmt = $this->_prepareQuery(); $stmt = $this->_prepareQuery();
// Bind parameters to statment // Bind parameters to statement if any
if ($hasTableData || $hasConditional) { if (count ($this->_bindParams) > 1)
call_user_func_array(array($stmt, 'bind_param'), $this->refValues($this->_bindParams)); call_user_func_array(array($stmt, 'bind_param'), $this->refValues($this->_bindParams));
}
$this->_lastQuery = $this->replacePlaceHolders($this->_query, $this->_bindParams); $this->_lastQuery = $this->replacePlaceHolders($this->_query, $this->_bindParams);
return $stmt; return $stmt;
......
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