Skip to content

Commit

Permalink
Fixes yiisoft#876.
Browse files Browse the repository at this point in the history
  • Loading branch information
qiangxue committed Sep 14, 2013
1 parent 0a5b1a9 commit a2b4ef0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions framework/yii/db/ActiveRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -889,6 +889,7 @@ private function updateInternal($attributes = null)
}
$values = $this->getDirtyAttributes($attributes);
if (empty($values)) {
$this->afterSave(false);
return 0;
}
$condition = $this->getOldPrimaryKey(true);
Expand Down

0 comments on commit a2b4ef0

Please sign in to comment.