Commit 2c0761bc authored by Alexander Butenko's avatar Alexander Butenko

Refactor bugfix to a more streamline code

parent 94fea951
...@@ -317,15 +317,12 @@ class MysqliDb ...@@ -317,15 +317,12 @@ class MysqliDb
$this->_query = "UPDATE " . self::$_prefix . $tableName ." SET "; $this->_query = "UPDATE " . self::$_prefix . $tableName ." SET ";
$stmt = $this->_buildQuery (null, $tableData); $stmt = $this->_buildQuery (null, $tableData);
if ($stmt->execute() == false) { $status = $stmt->execute();
$this->reset();
$this->_stmtError = $stmt->error;
return false;
}
$this->reset(); $this->reset();
$this->_stmtError = $stmt->error;
$this->count = $stmt->affected_rows; $this->count = $stmt->affected_rows;
return true; return $status;
} }
/** /**
......
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