* true if contact extends, false otherwise.
*/
public static function isExtendsContactType($subType, $contactType, $ignoreCache = FALSE, $columnName = 'name') {
- if (!is_array($subType)) {
- $subType = explode(CRM_Core_DAO::VALUE_SEPARATOR, trim($subType, CRM_Core_DAO::VALUE_SEPARATOR));
- }
+ $subType = (array) CRM_Utils_Array::explodePadded($subType);
$subtypeList = self::subTypes($contactType, TRUE, $columnName, $ignoreCache);
$intersection = array_intersect($subType, $subtypeList);
return $subType == $intersection;