diff --git a/cake/libs/model/datasources/dbo_source.php b/cake/libs/model/datasources/dbo_source.php index 121172878..9cb59d04b 100644 --- a/cake/libs/model/datasources/dbo_source.php +++ b/cake/libs/model/datasources/dbo_source.php @@ -1122,7 +1122,7 @@ class DboSource extends DataSource { } $conditions = $this->defaultConditions($model, $conditions); - if ($query === false) { + if ($conditions === false) { return false; } $fields = join(',', $updates);