This fix removes the warning if no weblinks
This commit is contained in:
Maikol Fustes 2020-09-28 12:45:14 +02:00 committed by GitHub
parent 5ad08ed6e0
commit dffe7c53c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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();