Skip to content
Permalink
Browse files

Fixes #3469, explicit isset check for counterCache

  • Loading branch information...
cuppett committed May 11, 2014
1 parent cc49d28 commit ed83df5bedec77a300336ff7f0150aef280afa15
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Model/Model.php
@@ -2106,7 +2106,7 @@ public function updateCounterCache($keys = array(), $created = false) {
protected function _prepareUpdateFields($data) {
$foreignKeys = array();
foreach ($this->belongsTo as $assoc => $info) {
if ($info['counterCache']) {
if (isset($info['counterCache']) && $info['counterCache']) {
$foreignKeys[$assoc] = $info['foreignKey'];
}
}

0 comments on commit ed83df5

Please sign in to comment.
You can’t perform that action at this time.