diff --git a/e107_core/shortcodes/single/navigation.php b/e107_core/shortcodes/single/navigation.php index 1f4e3fc5c..0d3f99159 100644 --- a/e107_core/shortcodes/single/navigation.php +++ b/e107_core/shortcodes/single/navigation.php @@ -17,6 +17,9 @@ function navigation_shortcode($parm='') $data = $nav->initData($category); // $data = $nav->collection($category); - return $nav->render($data, $template); + if($data) + { + return $nav->render($data, $template); + } } \ No newline at end of file