Better check

This commit is contained in:
Tuan Pham Ngoc 2021-08-18 14:39:15 +07:00 committed by GitHub
parent d765eabdf6
commit 40fec2bdfa
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 (is_null($this->_items) || !count($this->_items)) if ($this->_items === null)
{ {
$app = JFactory::getApplication(); $app = JFactory::getApplication();
$menu = $app->getMenu(); $menu = $app->getMenu();