30
1
mirror of https://github.com/joomla-extensions/weblinks.git synced 2024-09-22 18:19:06 +00:00

Merge branch 'master' into fix_category_view

This commit is contained in:
Tuan Pham Ngoc 2021-08-18 16:15:15 +07:00
commit 592c725f08
2 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ class WeblinksModelCategories extends JModelList
*/ */
public function getItems() public function getItems()
{ {
if (is_null($this->_items) || !count($this->_items)) if ($this->_items === null)
{ {
$app = JFactory::getApplication(); $app = JFactory::getApplication();
$menu = $app->getMenu(); $menu = $app->getMenu();

View File

@ -110,6 +110,6 @@ class ModWeblinksHelper
return $items; return $items;
} }
return; return array();
} }
} }