Skip to content
This repository
Browse code

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

…lue instead of the original value.
  • Loading branch information...
commit e6aeae8935b4fc7b98b83c12601ba5bfd57ebb6a 1 parent b86bec1
Mark Story authored October 31, 2010

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  cake/libs/model/cake_schema.php
4  cake/libs/model/cake_schema.php
@@ -550,9 +550,9 @@ function _arrayDiffAssoc($array1, $array2) {
550 550
 				$difference[$key] = $value;
551 551
 				continue;
552 552
 			}
553  
-			$value = strval($value);
  553
+			$compare = strval($value);
554 554
 			$correspondingValue = strval($correspondingValue);
555  
-			if ($value === $correspondingValue) {
  555
+			if ($compare === $correspondingValue) {
556 556
 				continue;
557 557
 			}
558 558
 			$difference[$key] = $value;

0 notes on commit e6aeae8

Please sign in to comment.
Something went wrong with that request. Please try again.