X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FMenu.php;h=54df7411b7c046be68c2a05b4dce85e8512c667c;hb=8381af809c027065ceb28f18b5530ffb3a51ada3;hp=06958e49730b8ead440c59e6d4a6758cb70fe17d;hpb=52df19870805bf5a2bae2388a1f6c5a0309c2d92;p=civicrm-core.git diff --git a/CRM/Core/Menu.php b/CRM/Core/Menu.php index 06958e4973..54df7411b7 100644 --- a/CRM/Core/Menu.php +++ b/CRM/Core/Menu.php @@ -271,11 +271,11 @@ class CRM_Core_Menu { $values = array(); foreach ($menu as $path => $item) { - if (!CRM_Utils_Array::value('adminGroup', $item)) { + if (empty($item['adminGroup'])) { continue; } - $query = CRM_Utils_Array::value('path_arguments', $item) ? str_replace(',', '&', $item['path_arguments']) . '&reset=1' : 'reset=1'; + $query = !empty($item['path_arguments']) ? str_replace(',', '&', $item['path_arguments']) . '&reset=1' : 'reset=1'; $value = array( 'title' => $item['title'], @@ -456,7 +456,7 @@ class CRM_Core_Menu { if (array_key_exists($currentPath, $menu) && isset($menu[$currentPath]['title']) ) { - $urlVar = CRM_Utils_Array::value('path_arguments', $menu[$currentPath]) ? '&' . $menu[$currentPath]['path_arguments'] : ''; + $urlVar = !empty($menu[$currentPath]['path_arguments']) ? '&' . $menu[$currentPath]['path_arguments'] : ''; $crumbs[] = array( 'title' => $menu[$currentPath]['title'], 'url' => CRM_Utils_System::url($currentPath,