From: Florent Bruneau Date: Sun, 1 Feb 2009 13:13:11 +0000 (+0100) Subject: Fix a notice. X-Git-Tag: core/1.0.1~23 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;ds=sidebyside;h=73e94d3b4d3635205952d50f48e0afd97d4c4417;p=platal.git Fix a notice. Signed-off-by: Florent Bruneau --- 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; }