diff --git a/CRM/Core/Menu.php b/CRM/Core/Menu.php index f370b8cacb6b..05701ad927d7 100644 --- a/CRM/Core/Menu.php +++ b/CRM/Core/Menu.php @@ -227,7 +227,8 @@ public static function fillMenuValues(&$menu, $path) { foreach ($fieldsToPropagate as $field) { if (!$fieldsPresent[$field]) { - if (CRM_Utils_Array::value($field, CRM_Utils_Array::value($parentPath, $menu)) !== NULL) { + $parentPath = $menu[$parentPath] ?? []; + if (CRM_Utils_Array::value($field, $parentPath) !== NULL) { $fieldsPresent[$field] = TRUE; $menu[$path][$field] = $menu[$parentPath][$field]; }