From d387441a183996960508b543ffec582b06315531 Mon Sep 17 00:00:00 2001 From: dp-ifacesoft Date: Wed, 19 Aug 2020 20:53:00 +0300 Subject: [PATCH] fix profile --- source/Ice/Helper/Type/Array.php | 3 +++ 1 file changed, 3 insertions(+) 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' => []