aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-07 16:16:50 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-07 16:16:50 +0000
commit31c43df39133b5dc32bced11260ce3f2c4c7d6d8 (patch)
tree8ad93d9209388dd4eac98e2a96473f8016fb22ad
parentc95030497f58a5d895bfcd0ebefa4a7200dad63f (diff)
downloadelgg-31c43df39133b5dc32bced11260ce3f2c4c7d6d8.tar.gz
elgg-31c43df39133b5dc32bced11260ce3f2c4c7d6d8.tar.bz2
Improved tag display
git-svn-id: https://code.elgg.org/elgg/trunk@418 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--views/default/output/tags.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/views/default/output/tags.php b/views/default/output/tags.php
index d5d2f1ce0..39cee3280 100644
--- a/views/default/output/tags.php
+++ b/views/default/output/tags.php
@@ -1,7 +1,10 @@
<?php
- if (!empty($vars['tags']) && is_array($vars['tags'])) {
+ if (!empty($vars['tags'])) {
$string = "";
+ if (!is_array($vars['tags']))
+ $vars['tags'] = array($vars['tags']);
+
foreach($vars['tags'] as $tag) {
if (!empty($tagstr)) {
$tagstr .= ", ";