diff --git a/source/Ice/Helper/Type/Array.php b/source/Ice/Helper/Type/Array.php index 553b87d1..a3a1f120 100644 --- a/source/Ice/Helper/Type/Array.php +++ b/source/Ice/Helper/Type/Array.php @@ -290,6 +290,9 @@ public static function diffKey(array $old, array $new, $onlyChanges = false) */ public static function diff($old, $new, $onlyChanges = false) { + $old = array_filter($old); // пока так, кому надо - + $new = array_filter($new); // реализует сравнение null-ов ) + $diff = [ 'added' => [], 'deleted' => []