Don't lose keys with empty values when flattening array
authorAidan Saunders <aidan.saunders@squiffle.uk>
Wed, 15 Aug 2018 19:24:36 +0000 (20:24 +0100)
committerAidan Saunders <aidan.saunders@squiffle.uk>
Thu, 29 Nov 2018 13:27:53 +0000 (13:27 +0000)
CRM/Utils/Array.php

index 73b4dab45a2246c496b093d7e8b2499c8be32f6d..dbcb100e16e37312797e31dc46b2296295e9ff2d 100644 (file)
@@ -238,9 +238,7 @@ class CRM_Utils_Array {
         self::flatten($value, $flat, $newPrefix, $seperator);
       }
       else {
-        if (!empty($value)) {
-          $flat[$newPrefix] = $value;
-        }
+        $flat[$newPrefix] = $value;
       }
     }
   }