commit 7894fccc450e7a597b4558304c44b84e9fdb36f4
parent c3f1a9b0f6000fe3a925b34d8756cd3c1c86cc55
Author: dankert <devnull@localhost>
Date: Sat, 20 Jan 2007 16:17:04 +0100
Attribut "url" hat schon den richtigen Wert.
Diffstat:
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/themes/default/include/html/image.inc.php b/themes/default/include/html/image.inc.php
@@ -1,5 +1,5 @@
<?php
-if (!empty($attr_elementtype)) {
+if (isset($attr_elementtype)) {
?><img src="<?php echo $image_dir.'icon_el_'.$$attr_elementtype.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php
} elseif(!empty($attr_config)) {
global $conf;
@@ -10,11 +10,11 @@ if (!empty($attr_elementtype)) {
$tmp_url = $c;
?><img src="<?php echo $tmp_url ?>" border="0" align="<?php echo $attr_align ?>"><?php
}
-elseif (!empty($attr_type)) {
+elseif (isset($attr_type)) {
?><img src="<?php echo $image_dir.'icon_'.$$attr_type.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php
-} elseif (!empty($attr_icon)) {
+} elseif (isset($attr_icon)) {
?><img src="<?php echo $image_dir.'icon_'.$attr_icon.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php
-} elseif (!empty($$attr_url)) {
-?><img src="<?php echo $$attr_url ?>" border="0" align="<?php echo $attr_align ?>"><?php
-} elseif (!empty($attr_file)) {
+} elseif (isset($attr_url)) {
+?><img src="<?php echo $attr_url ?>" border="0" align="<?php echo $attr_align ?>"><?php
+} elseif (isset($attr_file)) {
?><img src="<?php echo $image_dir.$$attr_file.IMG_ICON_EXT ?>" border="0" align="<?php echo $attr_align ?>"><?php } ?>
\ No newline at end of file