Fix a notice.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 1 Feb 2009 13:13:11 +0000 (14:13 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 1 Feb 2009 13:13:11 +0000 (14:13 +0100)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
plugins/compiler.icon.php

index ea7f8c7..4487e59 100644 (file)
@@ -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;
     }