From: Andreas Unterkircher Date: Tue, 10 Jul 2007 17:24:16 +0000 (+0000) Subject: issue38, removed pending comma on last selected-tag entry X-Git-Tag: phpfspot-1.2~151 X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=commitdiff_plain;h=3567b8990c9cf323eea05e607c1cc1556b5e18f0;ds=sidebyside issue38, removed pending comma on last selected-tag entry git-svn-id: file:///var/lib/svn/phpfspot/trunk@184 fa6a889d-dae6-447d-9e79-4ba9a3039384 --- 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 "". $this->tags[$tag] .", "; + $output.= "". $this->tags[$tag] .", "; } - } + $output = substr($output, 0, strlen($output)-2); + print $output; + } // getSelectedTags() public function addTag($tag)