mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixes #3469, explicit isset check for counterCache
This commit is contained in:
parent
cc49d28ef8
commit
ed83df5bed
1 changed files with 1 additions and 1 deletions
|
@ -2106,7 +2106,7 @@ class Model extends Object implements CakeEventListener {
|
|||
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'];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue