From 62bcdea60f428c649635b7567aee387f6d324623 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 30 Apr 2015 08:15:57 -0600 Subject: [PATCH] CRM-16333 - explodePadded should return an empty array from an empty string --- CRM/Utils/Array.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CRM/Utils/Array.php b/CRM/Utils/Array.php index 927b9670b8..fa658f6881 100644 --- a/CRM/Utils/Array.php +++ b/CRM/Utils/Array.php @@ -639,6 +639,10 @@ class CRM_Utils_Array { if (is_array($values)) { return $values; } + // Empty string -> empty array + if ($values === '') { + return array(); + } return explode($delim, trim((string) $values, $delim)); } -- 2.25.1