Permalink
Browse files

Fixing issue where value in difference array was always the string va…

…lue instead of the original value.
  • Loading branch information...
1 parent b86bec1 commit e6aeae8935b4fc7b98b83c12601ba5bfd57ebb6a @markstory markstory committed Nov 1, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 cake/libs/model/cake_schema.php
@@ -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;

0 comments on commit e6aeae8

Please sign in to comment.