Commit 0558cd95 authored by Ryan Szrama's avatar Ryan Szrama Committed by Ryan Szrama
Browse files

Issue #3241668 by hey_germano, rszrama: Notice: Trying to access array offset...

Issue #3241668 by hey_germano, rszrama: Notice: Trying to access array offset on value of type bool in toolbar_megamenu_tree_output
parent 8ebde830
Loading
Loading
Loading
Loading
+1 −1
Changes for modules/commerce_kickstart/toolbar_megamenu/toolbar_megamenu.module: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -186,7 +186,7 @@ function toolbar_megamenu_tree_output($tree, $balance = TRUE) {
      // the active class accordingly. But local tasks do not appear in menu
      // trees, so if the current path is a local task, and this link is its
      // tab root, then we have to set the class manually.
      if ($data['link']['href'] == $router_item['tab_root_href'] && $data['link']['href'] != $_GET['q']) {
      if (!empty($router_item['tab_root_href']) && $data['link']['href'] == $router_item['tab_root_href'] && $data['link']['href'] != $_GET['q']) {
        $data['link']['localized_options']['attributes']['class'][] = 'active';
      }