Update to is_a function instead of is_subclass_of
authorTim Mallezie <tim.mallezie@chiro.be>
Tue, 10 Mar 2015 19:51:27 +0000 (20:51 +0100)
committerTim Mallezie <tim.mallezie@chiro.be>
Tue, 10 Mar 2015 19:51:27 +0000 (20:51 +0100)
CRM/Contact/Form/Location.php

index 2c539a21ebf9e14c17408fbae1fbde6e351a272d..16544e922f4bfd6ae9fa1d0ac31ccb3ca37bcd4b 100644 (file)
@@ -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'),