From 73e94d3b4d3635205952d50f48e0afd97d4c4417 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Sun, 1 Feb 2009 14:13:11 +0100 Subject: [PATCH] Fix a notice. Signed-off-by: Florent Bruneau --- plugins/compiler.icon.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/compiler.icon.php b/plugins/compiler.icon.php index ea7f8c7..4487e59 100644 --- a/plugins/compiler.icon.php +++ b/plugins/compiler.icon.php @@ -24,7 +24,7 @@ function smarty_compiler_icon($tag_attrs, &$compiler) extract($compiler->_parse_attrs($tag_attrs)); $alt = 'alt=""'; - + if (isset($title)) { $title = pl_entities(trim($title, '\'"'), ENT_QUOTES); $alt = 'alt="'.$title.'"'; @@ -33,7 +33,7 @@ function smarty_compiler_icon($tag_attrs, &$compiler) $name = pl_entities(trim($name, '\'"'), ENT_QUOTES); $name = "images/icons/$name.gif"; - if ($full) { + if (isset($full) && $full) { global $globals; $name = $globals->baseurl . '/' . $name; } -- 2.1.4