From 863bf99657046d935259bb2ee22837a0fb8fe8f5 Mon Sep 17 00:00:00 2001 From: rica-carv Date: Tue, 19 Apr 2016 13:20:47 +0100 Subject: [PATCH] Update e_shortcode.php --- e107_plugins/banner/e_shortcode.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/e107_plugins/banner/e_shortcode.php b/e107_plugins/banner/e_shortcode.php index d80ab3f81..331f3168f 100644 --- a/e107_plugins/banner/e_shortcode.php +++ b/e107_plugins/banner/e_shortcode.php @@ -96,10 +96,10 @@ class banner_shortcodes extends e_shortcode break; } - $text = "toAttribute(varset($row['banner_tooltip'],''))."\">"; - $text .= $ban_ret; - $text .= ''; - + $start = "toAttribute(varset($row['banner_tooltip'],''))."\">"; + $end = ''; + $text = $start.$ban_ret.$end; + if(!empty($row['banner_description'])) { $text .= "
".$start.$tp->toHtml($row['banner_description'], true).$end. "
";