32
1
mirror of https://github.com/joomla-extensions/weblinks.git synced 2024-10-31 19:02:30 +00:00

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

View File

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