mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
Prevent looping of non-existent array.
This commit is contained in:
@@ -185,7 +185,14 @@ class sitelinks_alt
|
||||
{
|
||||
$tp = e107::getParser();
|
||||
|
||||
if(!isset($linklist['sub_'.$id]) || !is_array($linklist['sub_'.$id]))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
$text = "<div id='l_".$id."' class='menu' onmouseover=\"menuMouseover(event)\">";
|
||||
|
||||
|
||||
foreach ($linklist['sub_'.$id] as $sub)
|
||||
{
|
||||
// Filter title for backwards compatibility ---->
|
||||
|
Reference in New Issue
Block a user