Commit f2b91854 authored by Alexander Butenko's avatar Alexander Butenko Committed by GitHub

Merge pull request #584 from shimscharf/master

fixed delete statement return value
parents 04cd1ab1 ad96b4f7
......@@ -804,7 +804,7 @@ class MysqliDb
$this->_stmtErrno = $stmt->errno;
$this->reset();
return ($stmt->affected_rows > 0);
return ($stmt->affected_rows > -1); // affected_rows returns 0 if nothing matched where statement, or required updating, -1 if error
}
/**
......
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