From 941077afba1a18aa376eadc2d0c8076145f50b8c Mon Sep 17 00:00:00 2001 From: Aidan Saunders Date: Wed, 15 Aug 2018 20:24:36 +0100 Subject: [PATCH] Don't lose keys with empty values when flattening array --- CRM/Utils/Array.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; } } } -- 2.25.1