From 7efb5884390c422c95d29f1c563e4257f5b432e2 Mon Sep 17 00:00:00 2001 From: Alebak Date: Sat, 20 Jun 2020 15:00:27 -0500 Subject: [PATCH 1/2] Update default.php FIX! Warning: count(): Parameter must be an array or an object that implements Countable in \administrator\modules\mod_digicom_menu\tmpl\default.php on line 26 https://github.com/themexpert/digicom/issues/411 --- src/mod_digicom_menu/tmpl/default.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod_digicom_menu/tmpl/default.php b/src/mod_digicom_menu/tmpl/default.php index 5fc55301..c803a063 100644 --- a/src/mod_digicom_menu/tmpl/default.php +++ b/src/mod_digicom_menu/tmpl/default.php @@ -23,7 +23,7 @@ submenu) > 0) : + if (count((array)$menuItems->submenu) > 0) : $menuItems = $menuItems->submenu; $dispatcher = JDispatcher::getInstance(); $dispatcher->trigger( 'onDigicomAfterAdminModMenuItem', array(&$menuItems)); @@ -50,4 +50,4 @@ - \ No newline at end of file + From 46f9d054ef76fc445fd299ae7a88c8b123f511f9 Mon Sep 17 00:00:00 2001 From: Alebak Date: Thu, 10 Sep 2020 19:09:18 -0500 Subject: [PATCH 2/2] Update default.php --- src/mod_digicom_menu/tmpl/default.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod_digicom_menu/tmpl/default.php b/src/mod_digicom_menu/tmpl/default.php index c803a063..89de5a08 100644 --- a/src/mod_digicom_menu/tmpl/default.php +++ b/src/mod_digicom_menu/tmpl/default.php @@ -23,7 +23,7 @@ submenu) > 0) : + if (count(json_decode(json_encode($menuItems->submenu), true)) > 0) : $menuItems = $menuItems->submenu; $dispatcher = JDispatcher::getInstance(); $dispatcher->trigger( 'onDigicomAfterAdminModMenuItem', array(&$menuItems));