@@ -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 | } |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | // Skip all components that return the default icon |
| 22 | - if ( isset($item[MIDCOM_NAV_COMPONENT]) |
|
| 22 | + if (isset($item[MIDCOM_NAV_COMPONENT]) |
|
| 23 | 23 | && ($tmp = midcom::get()->componentloader->get_component_icon($item[MIDCOM_NAV_COMPONENT], false))) { |
| 24 | 24 | $icon = '<i class="fa fa-' . $tmp . '"></i>'; |
| 25 | 25 | } elseif (!$item[MIDCOM_NAV_GUID]) { |