diff --git a/e107_core/shortcodes/single/sitelinks_alt.php b/e107_core/shortcodes/single/sitelinks_alt.php index 4cbc75b9a..56278e28d 100644 --- a/e107_core/shortcodes/single/sitelinks_alt.php +++ b/e107_core/shortcodes/single/sitelinks_alt.php @@ -184,8 +184,15 @@ class sitelinks_alt static function render_sub($linklist, $id, $params, $icon) { $tp = e107::getParser(); + + if(!isset($linklist['sub_'.$id]) || !is_array($linklist['sub_'.$id])) + { + return null; + } $text = "