From 3567b8990c9cf323eea05e607c1cc1556b5e18f0 Mon Sep 17 00:00:00 2001 From: Andreas Unterkircher Date: Tue, 10 Jul 2007 17:24:16 +0000 Subject: [PATCH] issue38, removed pending comma on last selected-tag entry git-svn-id: file:///var/lib/svn/phpfspot/trunk@184 fa6a889d-dae6-447d-9e79-4ba9a3039384 --- phpfspot.class.php | 7 +++++-- 1 file 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 "". $this->tags[$tag] .", "; + $output.= "". $this->tags[$tag] .", "; } - } + $output = substr($output, 0, strlen($output)-2); + print $output; + } // getSelectedTags() public function addTag($tag) -- 2.25.1