From 0f422905ce783f64dc41eb9a8cef405ee0d50cc2 Mon Sep 17 00:00:00 2001 From: Maikol Fustes <54444319+maikol-ortigueira@users.noreply.github.com> Date: Thu, 17 Sep 2020 18:35:27 +0200 Subject: [PATCH] Fix for #427 This fix removes the warning if no weblinks --- src/components/com_weblinks/models/categories.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/com_weblinks/models/categories.php b/src/components/com_weblinks/models/categories.php index 0ae095a..e5295b3 100644 --- a/src/components/com_weblinks/models/categories.php +++ b/src/components/com_weblinks/models/categories.php @@ -92,7 +92,7 @@ class WeblinksModelCategories extends JModelList */ public function getItems() { - if (!count($this->_items)) + if (is_null($this->_items) || !count($this->_items)) { $app = JFactory::getApplication(); $menu = $app->getMenu();