Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed error in update statement.
  • Loading branch information
jrbasso committed Feb 26, 2011
1 parent 4828e16 commit 7fc3eea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cake/libs/model/datasources/dbo/dbo_mysql.php
Expand Up @@ -363,7 +363,7 @@ function update($model, $fields = array(), $values = null, $conditions = null) {
return false;
}

if ($this->execute($this->renderStatement('update', compact('table', 'alias', 'joins', 'fields', 'conditions'))) === false) {
if (!$this->execute($this->renderStatement('update', compact('table', 'alias', 'joins', 'fields', 'conditions')))) {
$model->onError();
return false;
}
Expand Down

0 comments on commit 7fc3eea

Please sign in to comment.