summaryrefslogtreecommitdiffstats
path: root/phpfspot.class.php
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2007-07-10 17:24:16 +0000
committerAndreas Unterkircher <unki@netshadow.at>2007-07-10 17:24:16 +0000
commit3567b8990c9cf323eea05e607c1cc1556b5e18f0 (patch)
tree25fa2c41467f8c1fc7411074133b21db7fdd567a /phpfspot.class.php
parent086cf84bfd20fcccdc978a0200ab97cdeca2c172 (diff)
issue38, removed pending comma on last selected-tag entry
git-svn-id: file:///var/lib/svn/phpfspot/trunk@184 fa6a889d-dae6-447d-9e79-4ba9a3039384
Diffstat (limited to 'phpfspot.class.php')
-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)