30
1
mirror of https://github.com/joomla-extensions/weblinks.git synced 2024-09-21 17:49:07 +00:00
This fix removes the warning if no weblinks
This commit is contained in:
Maikol Fustes 2020-09-17 18:35:27 +02:00 committed by GitHub
parent 5ad08ed6e0
commit 0f422905ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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