projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #19093 from civicrm/5.32
[civicrm-core.git]
/
CRM
/
Core
/
Page
/
Basic.php
diff --git
a/CRM/Core/Page/Basic.php
b/CRM/Core/Page/Basic.php
index 0b784e25cdfb490b062943b9f3519a8c21754381..097ba8b6c07126840fb96e1d7d8dc8ffbe906cee 100644
(file)
--- 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) {
$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
$values['class'] = 'reserved';
// check if object is relationship type
@@
-326,7
+326,7
@@
abstract class CRM_Core_Page_Basic extends CRM_Core_Page {
}
}
else {
}
}
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;
if ($object->is_active) {
if ($hasDisable) {
$newAction += CRM_Core_Action::DISABLE;