From: Coleman Watts Date: Wed, 27 Aug 2014 20:28:19 +0000 (+0100) Subject: Code cleanup X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5439e6fb77f569bc918cbbe18e572c438cc83f08;p=civicrm-core.git Code cleanup --- diff --git a/CRM/Core/BAO/CustomField.php b/CRM/Core/BAO/CustomField.php index b80f086842..24a8782cef 100644 --- a/CRM/Core/BAO/CustomField.php +++ b/CRM/Core/BAO/CustomField.php @@ -411,11 +411,7 @@ class CRM_Core_BAO_CustomField extends CRM_Core_DAO_CustomField { } } - if ($customDataSubType && !is_array($customDataSubType)) { - $customDataSubType = explode(CRM_Core_DAO::VALUE_SEPARATOR, - trim($customDataSubType, CRM_Core_DAO::VALUE_SEPARATOR) - ); - } + $customDataSubType = CRM_Utils_Array::explodePadded($customDataSubType); if (is_array($customDataType)) { $cacheKey = implode('_', $customDataType); @@ -684,8 +680,7 @@ class CRM_Core_BAO_CustomField extends CRM_Core_DAO_CustomField { ); } } - return $all ? array( - NULL, NULL) : NULL; + return $all ? array(NULL, NULL) : NULL; } /**