From 438bf16b0c642c778cff32040dec5c5da1e7aa98 Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 6 May 2013 15:40:37 -0700 Subject: [PATCH] Issue #255 - fix for empty sidebar. --- e107_core/shortcodes/single/navigation.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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