Fixed error in update statement.

This commit is contained in:
Juan Basso 2011-02-25 22:14:52 -03:00
parent 4828e16762
commit 7fc3eead9c

View file

@ -363,7 +363,7 @@ class DboMysql extends DboSource {
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;
}