Skip to content
Snippets Groups Projects
Commit 417799a5 authored by Jakob P's avatar Jakob P
Browse files

Issue #3397570: Add check for Undefined array key "#active".

parent b655dbac
No related branches found
No related tags found
No related merge requests found
Pipeline #242088 canceled
......@@ -97,7 +97,7 @@ class AdminToolbarToolsHelper {
// Only show the accessible local tasks.
foreach (Element::getVisibleChildren($local_tasks['tabs']) as $task) {
$local_task_links['#links'][$task] = $local_tasks['tabs'][$task]['#link'];
if ($local_tasks['tabs'][$task]['#active']) {
if (isset($local_tasks['tabs'][$task]['#active']) && $local_tasks['tabs'][$task]['#active']) {
$local_task_links['#links'][$task]['attributes']['class'][] = 'is-active';
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment