From: Andreas Unterkircher Date: Sun, 15 Jul 2007 15:10:42 +0000 (+0000) Subject: issue48, make sure no pending comma is shown at the end of the available-tags X-Git-Tag: phpfspot-1.2~124 X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=350ffa92282e6b5adf3dc2b854fbb2255c845b8e;p=phpfspot.git 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 --- 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() /**