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
// Prepare query
$stmt = $this->_prepareQuery();
// Bind parameters to statment
if ($hasTableData || $hasConditional) {
// Bind parameters to statement if any
if (count ($this->_bindParams) > 1)
call_user_func_array(array($stmt, 'bind_param'), $this->refValues($this->_bindParams));
}
$this->_lastQuery = $this->replacePlaceHolders($this->_query, $this->_bindParams);
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