X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FPage%2FBasic.php;h=097ba8b6c07126840fb96e1d7d8dc8ffbe906cee;hb=26c9d07d76761b9c771ecd5cb1760438a6b30d87;hp=0b784e25cdfb490b062943b9f3519a8c21754381;hpb=4356a60f1c2f8b97b6c35794d8019cfcad672745;p=civicrm-core.git diff --git a/CRM/Core/Page/Basic.php b/CRM/Core/Page/Basic.php index 0b784e25cd..097ba8b6c0 100644 --- a/CRM/Core/Page/Basic.php +++ b/CRM/Core/Page/Basic.php @@ -306,7 +306,7 @@ abstract class CRM_Core_Page_Basic extends CRM_Core_Page { $object_type = get_class($object); if (!$forceAction) { - if (array_key_exists('is_reserved', $object) && $object->is_reserved) { + if (property_exists($object, 'is_reserved') && $object->is_reserved) { $values['class'] = 'reserved'; // check if object is relationship type @@ -326,7 +326,7 @@ abstract class CRM_Core_Page_Basic extends CRM_Core_Page { } } else { - if (array_key_exists('is_active', $object)) { + if (property_exists($object, 'is_active')) { if ($object->is_active) { if ($hasDisable) { $newAction += CRM_Core_Action::DISABLE;