Skip to content

Commit

Permalink
Fixing issue where value in difference array was always the string va…
Browse files Browse the repository at this point in the history
…lue instead of the original value.
  • Loading branch information
markstory committed Nov 1, 2010
1 parent b86bec1 commit e6aeae8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cake/libs/model/cake_schema.php
Expand Up @@ -550,9 +550,9 @@ function _arrayDiffAssoc($array1, $array2) {
$difference[$key] = $value;
continue;
}
$value = strval($value);
$compare = strval($value);
$correspondingValue = strval($correspondingValue);
if ($value === $correspondingValue) {
if ($compare === $correspondingValue) {
continue;
}
$difference[$key] = $value;
Expand Down

0 comments on commit e6aeae8

Please sign in to comment.