Update change to is_a function, i should read the docs
authorTim Mallezie <tim.mallezie@chiro.be>
Tue, 10 Mar 2015 20:01:41 +0000 (21:01 +0100)
committerTim Mallezie <tim.mallezie@chiro.be>
Tue, 10 Mar 2015 20:01:41 +0000 (21:01 +0100)
CRM/Contact/Form/Location.php

index 16544e922f4bfd6ae9fa1d0ac31ccb3ca37bcd4b..da69885b15a29afb41151d40459e05464fa53a7d 100644 (file)
@@ -53,9 +53,8 @@ class CRM_Contact_Form_Location {
       $form->set($form->_addBlockName . '_Block_Count', $additionalblockCount);
     }
 
-    $className = CRM_Utils_System::getClassName($form);
-    if (is_a($className, 'CRM_Event_Form_ManageEvent_Location')
-    || is_a($className, 'CRM_Contact_Form_Domain')) {
+    if (is_a($form, 'CRM_Event_Form_ManageEvent_Location')
+    || is_a($form, 'CRM_Contact_Form_Domain')) {
       $form->_blocks = array(
         'Address' => ts('Address'),
         'Email' => ts('Email'),