summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authordeva <deva>2009-04-30 07:46:24 +0000
committerdeva <deva>2009-04-30 07:46:24 +0000
commit2796859d226233571dd37701433e74253bd1a904 (patch)
treece5f1190095a6756c2faf418bbccaddc15a5bed6 /utils
parent596af3f1a5db03a2fcdaa30cf559ac0fb69f9c90 (diff)
Empty values in tags now result in the tag not being shown.
Diffstat (limited to 'utils')
-rw-r--r--utils/modules/members.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/utils/modules/members.php b/utils/modules/members.php
index 2cd309c..30f86c3 100644
--- a/utils/modules/members.php
+++ b/utils/modules/members.php
@@ -22,10 +22,12 @@ class Member {
$str .= " <img alt=\"member\" class=\"member_image\" src=\"" . $MEMBERS_DIR."/".$this->image."\"/>\n";
$str .= " <div class=\"member_startyear\">Member since: " . $this->startyear . "</div>\n";
foreach($this->tags as $name => $val) {
- $str .= " <div class=\"member_tag\"><div class=\"member_tags_".$name."\">\n";
- $str .= " <div class=\"member_tag_name\">".$this->tagnames[$name]."</div>\n";
- $str .= " <div class=\"member_tag_value\">".$val."</div>\n";
- $str .= " </div></div>\n";
+ if($val != "") {
+ $str .= " <div class=\"member_tag\"><div class=\"member_tags_".$name."\">\n";
+ $str .= " <div class=\"member_tag_name\">".$this->tagnames[$name]."</div>\n";
+ $str .= " <div class=\"member_tag_value\">".$val."</div>\n";
+ $str .= " </div></div>\n";
+ }
}
$str .= "</div>\n";
return $str;