projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace CRM_Utils_Array::value with ?? in variable assignments
[civicrm-core.git]
/
CRM
/
Profile
/
Page
/
Listings.php
diff --git
a/CRM/Profile/Page/Listings.php
b/CRM/Profile/Page/Listings.php
index 0b84b8753e9111beb28e14e067cb078107056f9b..46807507ce5453ef99deaa38d17672214a9d7a9c 100644
(file)
--- a/
CRM/Profile/Page/Listings.php
+++ b/
CRM/Profile/Page/Listings.php
@@
-205,7
+205,7
@@
class CRM_Profile_Page_Listings extends CRM_Core_Page {
}
}
}
}
- $customField =
CRM_Utils_Array::value($name, $this->_customFields)
;
+ $customField =
$this->_customFields[$name] ?? NULL
;
if (!empty($_POST) && empty($_POST[$name])) {
if ($customField) {
if (!empty($_POST) && empty($_POST[$name])) {
if ($customField) {
@@
-410,7
+410,7
@@
class CRM_Profile_Page_Listings extends CRM_Core_Page {
CRM_Core_Error::statusBounce(ts('This profile does not have the map feature turned on.'));
}
CRM_Core_Error::statusBounce(ts('This profile does not have the map feature turned on.'));
}
- $groupId =
CRM_Utils_Array::value('limit_listings_group_id', $details)
;
+ $groupId =
$details['limit_listings_group_id'] ?? NULL
;
// add group id to params if a uf group belong to a any group
if ($groupId) {
// add group id to params if a uf group belong to a any group
if ($groupId) {