From 20a83b568185d30501321cbea9024455eb2f5152 Mon Sep 17 00:00:00 2001 From: Tim Mallezie Date: Tue, 10 Mar 2015 20:51:27 +0100 Subject: [PATCH] Update to is_a function instead of is_subclass_of --- CRM/Contact/Form/Location.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/CRM/Contact/Form/Location.php b/CRM/Contact/Form/Location.php index 2c539a21eb..16544e922f 100644 --- a/CRM/Contact/Form/Location.php +++ b/CRM/Contact/Form/Location.php @@ -54,12 +54,8 @@ class CRM_Contact_Form_Location { } $className = CRM_Utils_System::getClassName($form); - if (in_array($className, array( - 'CRM_Event_Form_ManageEvent_Location', - 'CRM_Contact_Form_Domain', - )) - || is_subclass_of($className, 'CRM_Event_Form_ManageEvent_Location') - || is_subclass_of($className, 'CRM_Contact_Form_Domain')) { + if (is_a($className, 'CRM_Event_Form_ManageEvent_Location') + || is_a($className, 'CRM_Contact_Form_Domain')) { $form->_blocks = array( 'Address' => ts('Address'), 'Email' => ts('Email'), -- 2.25.1