mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2025-02-05 10:48:26 +00:00
Prevent warnings on PHP 8
This commit is contained in:
parent
d452972144
commit
8ee3f1ba1a
@ -86,7 +86,7 @@ class WeblinksViewCategory extends JViewCategory
|
||||
$path = array(array('title' => $this->category->title, 'link' => ''));
|
||||
$category = $this->category->getParent();
|
||||
|
||||
while (($menu->query['option'] != 'com_weblinks' || $id != $category->id) && $category->id > 1)
|
||||
while ($category !== null && $category->id !== 'root' && ($menu->query['option'] != 'com_weblinks' || $id != $category->id))
|
||||
{
|
||||
$path[] = array('title' => $category->title, 'link' => WeblinksHelperRoute::getCategoryRoute($category->id));
|
||||
$category = $category->getParent();
|
||||
|
Loading…
x
Reference in New Issue
Block a user