diff --git a/src/mod_digicom_menu/tmpl/default.php b/src/mod_digicom_menu/tmpl/default.php index aa9162f4..89de5a08 100644 --- a/src/mod_digicom_menu/tmpl/default.php +++ b/src/mod_digicom_menu/tmpl/default.php @@ -23,7 +23,7 @@ submenu) && $menuItems->submenu != null && !is_null($menuItems->submenu) > 0) : + if (count(json_decode(json_encode($menuItems->submenu), true)) > 0) : $menuItems = $menuItems->submenu; $dispatcher = JDispatcher::getInstance(); $dispatcher->trigger( 'onDigicomAfterAdminModMenuItem', array(&$menuItems)); @@ -50,4 +50,4 @@ - \ No newline at end of file +