From dffe7c53c385eafb8b0cbb189d9c27c7c1573dc3 Mon Sep 17 00:00:00 2001 From: Maikol Fustes <54444319+maikol-ortigueira@users.noreply.github.com> Date: Mon, 28 Sep 2020 12:45:14 +0200 Subject: [PATCH] Fix for #427 (#428) 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();