projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f50a464
)
[REF] Fix another couple of uses of array_key_exists when the variable being checked...
author
Seamus Lee
<seamuslee001@gmail.com>
Sat, 13 Jun 2020 07:22:21 +0000
(17:22 +1000)
committer
Seamus Lee
<seamuslee001@gmail.com>
Sat, 13 Jun 2020 07:32:30 +0000
(17:32 +1000)
CRM/Core/Page/Basic.php
patch
|
blob
|
blame
|
history
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) {
- 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;