@@ -4,7 +4,7 @@ discard block |
||
| 4 | 4 | $count = count($data['navigation_items']); |
| 5 | 5 | |
| 6 | 6 | foreach ($data['navigation_items'] as $i => $item) { |
| 7 | - if ( isset($item[MIDCOM_NAV_SORTABLE]) |
|
| 7 | + if (isset($item[MIDCOM_NAV_SORTABLE]) |
|
| 8 | 8 | && !$item[MIDCOM_NAV_SORTABLE]) { |
| 9 | 9 | continue; |
| 10 | 10 | } |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | $style = ''; |
| 16 | 16 | |
| 17 | 17 | // Skip all components that return the default icon |
| 18 | - if ( isset($item[MIDCOM_NAV_COMPONENT]) |
|
| 18 | + if (isset($item[MIDCOM_NAV_COMPONENT]) |
|
| 19 | 19 | && ($tmp = midcom::get()->componentloader->get_component_icon($item[MIDCOM_NAV_COMPONENT], false))) { |
| 20 | 20 | $icon = '<i class="fa fa-' . $tmp . '"></i>'; |
| 21 | 21 | } elseif (!$item[MIDCOM_NAV_GUID]) { |