diff options
author | Andreas Unterkircher <unki@netshadow.at> | 2007-07-10 17:24:16 +0000 |
---|---|---|
committer | Andreas Unterkircher <unki@netshadow.at> | 2007-07-10 17:24:16 +0000 |
commit | 3567b8990c9cf323eea05e607c1cc1556b5e18f0 (patch) | |
tree | 25fa2c41467f8c1fc7411074133b21db7fdd567a /phpfspot.class.php | |
parent | 086cf84bfd20fcccdc978a0200ab97cdeca2c172 (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.php | 7 |
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) |