Skip to content
Permalink
Browse files

fix on php < 5.5

  • Loading branch information...
andrej-griniuk committed Jul 26, 2016
1 parent 1476936 commit e7f3365d8b6f13ab7a10a65ec23cddb29ebabdeb
Showing with 5 additions and 3 deletions.
  1. +5 −3 lib/Cake/Model/CakeSchema.php
@@ -486,9 +486,11 @@ public function compare($old, $new = null) {
foreach ($fields as $field => $value) {
if (!empty($old[$table][$field])) {
$diff = !empty($this->_arrayDiffAssoc($value, $old[$table][$field]))
|| !empty($this->_arrayDiffAssoc($old[$table][$field], $value));
if ($diff && $field !== 'indexes' && $field !== 'tableParameters') {
$diff = $this->_arrayDiffAssoc($value, $old[$table][$field]);
if (empty($diff)) {
$diff = $this->_arrayDiffAssoc($old[$table][$field], $value);
}
if (!empty($diff) && $field !== 'indexes' && $field !== 'tableParameters') {
$tables[$table]['change'][$field] = $value;
}
}

0 comments on commit e7f3365

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