From: Aidan Saunders Date: Wed, 15 Aug 2018 19:24:36 +0000 (+0100) Subject: Don't lose keys with empty values when flattening array X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=941077afba1a18aa376eadc2d0c8076145f50b8c;p=civicrm-core.git Don't lose keys with empty values when flattening array --- diff --git a/CRM/Utils/Array.php b/CRM/Utils/Array.php index 73b4dab45a..dbcb100e16 100644 --- a/CRM/Utils/Array.php +++ b/CRM/Utils/Array.php @@ -238,9 +238,7 @@ class CRM_Utils_Array { self::flatten($value, $flat, $newPrefix, $seperator); } else { - if (!empty($value)) { - $flat[$newPrefix] = $value; - } + $flat[$newPrefix] = $value; } } }