From: colemanw Date: Sun, 15 Oct 2023 05:12:06 +0000 (-0400) Subject: Merge pull request #27817 from colemanw/arrayCleanupCore X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ab7f890f2e2555ebd73b9b50e37950a7f94b75d3;p=civicrm-core.git Merge pull request #27817 from colemanw/arrayCleanupCore [REF] CRM/Core - Refactor unnecessary uses of CRM_Utils_Array::value --- ab7f890f2e2555ebd73b9b50e37950a7f94b75d3 diff --cc CRM/Core/BAO/Navigation.php index f81e4fa258,ad053d8c87..9a5bb862a2 --- a/CRM/Core/BAO/Navigation.php +++ b/CRM/Core/BAO/Navigation.php @@@ -74,9 -74,10 +74,9 @@@ class CRM_Core_BAO_Navigation extends C * @return CRM_Core_DAO_Navigation */ public static function add(&$params) { - $navigation = new CRM_Core_DAO_Navigation(); if (empty($params['id'])) { - $params['is_active'] = CRM_Utils_Array::value('is_active', $params, FALSE); - $params['has_separator'] = CRM_Utils_Array::value('has_separator', $params, FALSE); + $params['is_active'] = $params['is_active'] ?? FALSE; + $params['has_separator'] = $params['has_separator'] ?? FALSE; $params['domain_id'] = CRM_Utils_Array::value('domain_id', $params, CRM_Core_Config::domainID()); }