summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpfspot.class.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/phpfspot.class.php b/phpfspot.class.php
index 32c2df7..3a6a590 100644
--- a/phpfspot.class.php
+++ b/phpfspot.class.php
@@ -287,15 +287,18 @@ class PHPFSPOT {
public function getSelectedTags()
{
+ $output = "";
foreach($this->avail_tags as $tag)
{
// return all selected tags
if(isset($_SESSION['selected_tags']) && in_array($tag, $_SESSION['selected_tags'])) {
- print "<a href=\"javascript:Tags('del', ". $tag .");\" class=\"tag\">". $this->tags[$tag] ."</a>, ";
+ $output.= "<a href=\"javascript:Tags('del', ". $tag .");\" class=\"tag\">". $this->tags[$tag] ."</a>, ";
}
-
}
+ $output = substr($output, 0, strlen($output)-2);
+ print $output;
+
} // getSelectedTags()
public function addTag($tag)