From 350ffa92282e6b5adf3dc2b854fbb2255c845b8e Mon Sep 17 00:00:00 2001 From: Andreas Unterkircher Date: Sun, 15 Jul 2007 15:10:42 +0000 Subject: [PATCH 1/1] issue48, make sure no pending comma is shown at the end of the available-tags git-svn-id: file:///var/lib/svn/phpfspot/trunk@211 fa6a889d-dae6-447d-9e79-4ba9a3039384 --- phpfspot.class.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/phpfspot.class.php b/phpfspot.class.php index 265fa1d..2e491c5 100644 --- a/phpfspot.class.php +++ b/phpfspot.class.php @@ -367,6 +367,8 @@ class PHPFSPOT { */ public function getAvailableTags() { + $output = ""; + $result = $this->db->db_query(" SELECT tag_id as id, count(tag_id) as quantity FROM photo_tags @@ -414,10 +416,13 @@ class PHPFSPOT { // uncomment if you want sizes in whole %: $size = ceil($size); - print "". $this->tags[$key] .", "; + $output.= "". $this->tags[$key] .", "; } + $output = substr($output, 0, strlen($output)-2); + print $output; + } // getAvailableTags() /** -- 2.25.1