Skip to content

Commit

Permalink
Fix for #427
Browse files Browse the repository at this point in the history
This fix removes the warning if no weblinks
  • Loading branch information
maikol-ortigueira committed Sep 17, 2020
1 parent 5ad08ed commit 0f42290
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/com_weblinks/models/categories.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ protected function getStoreId($id = '')
*/
public function getItems()
{
if (!count($this->_items))
if (is_null($this->_items) || !count($this->_items))
{
$app = JFactory::getApplication();
$menu = $app->getMenu();
Expand Down

0 comments on commit 0f42290

Please sign in to comment.