Navigation Menu

Skip to content

Commit

Permalink
Change is_null() calls to strict checks in CakeSchema::_arrayDiffAssoc()
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan Crowe committed Oct 16, 2013
1 parent 39b7023 commit 5addb2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Model/CakeSchema.php
Expand Up @@ -551,7 +551,7 @@ protected function _arrayDiffAssoc($array1, $array2) {
continue;
}
$correspondingValue = $array2[$key];
if (is_null($value) !== is_null($correspondingValue)) {
if (($value === null ) !== ($correspondingValue === null)) {
$difference[$key] = $value;
continue;
}
Expand Down

0 comments on commit 5addb2c

Please sign in to comment.