diff --git a/e107_core/shortcodes/single/news_categories.sc b/e107_core/shortcodes/single/news_categories.sc
index 0b6d4030b..f9f626b7d 100644
--- a/e107_core/shortcodes/single/news_categories.sc
+++ b/e107_core/shortcodes/single/news_categories.sc
@@ -4,6 +4,7 @@
*
* News Categories shortcode
*/
+//
global $e107, $sql,$pref,$tp,$NEWSCAT,$NEWSCAT_ITEM;
$cString = 'nq_news_categories_sc';
@@ -110,10 +111,10 @@ $nbr_cols = (defined("NEWSCAT_COLS")) ? NEWSCAT_COLS : $nbr_cols;
}
}
$search[0] = "/\{NEWSCATICON\}(.*?)/si";
- $replace[0] = ($category_icon) ? "" : "";
+ $replace[0] = ($category_icon) ? "
" : "";
$search[1] = "/\{NEWSCATEGORY\}(.*?)/si";
- $replace[1] = ($category_name) ? "".$tp->toHTML($category_name,TRUE,"defs")."" : "";
+ $replace[1] = ($category_name) ? "".$tp->toHTML($category_name,TRUE,"defs")."" : "";
$text3 .= ($t % $nbr_cols == 0) ? "