From 7a0bea5c9a4cd107bb9280587b97c86e0ac362dc Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sun, 20 Nov 2016 13:11:15 -0500 Subject: [PATCH] CRM-19668 - Use explodePadded for safety if we already have an array --- CRM/Contact/BAO/Contact/Utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contact/BAO/Contact/Utils.php b/CRM/Contact/BAO/Contact/Utils.php index 3339de232a..0761326a43 100644 --- a/CRM/Contact/BAO/Contact/Utils.php +++ b/CRM/Contact/BAO/Contact/Utils.php @@ -49,7 +49,7 @@ class CRM_Contact_BAO_Contact_Utils { public static function getImage($contactType, $urlOnly = FALSE, $contactId = NULL, $addProfileOverlay = TRUE) { static $imageInfo = array(); - $contactType = explode(CRM_Core_DAO::VALUE_SEPARATOR, trim($contactType, CRM_Core_DAO::VALUE_SEPARATOR)); + $contactType = CRM_Utils_Array::explodePadded($contactType); $contactType = $contactType[0]; if (!array_key_exists($contactType, $imageInfo)) { -- 2.25.1