summaryrefslogtreecommitdiffstats
path: root/phpfspot.class.php
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2007-07-15 15:10:42 +0000
committerAndreas Unterkircher <unki@netshadow.at>2007-07-15 15:10:42 +0000
commit350ffa92282e6b5adf3dc2b854fbb2255c845b8e (patch)
tree4720e0e79d22a169b61b4278ba6f8a78608ddc07 /phpfspot.class.php
parent7f50c5e33bc845582d0d12c4d76d601e2e700094 (diff)
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
Diffstat (limited to 'phpfspot.class.php')
-rw-r--r--phpfspot.class.php7
1 files changed, 6 insertions, 1 deletions
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 "<a href=\"javascript:Tags('add', ". $key .");\" class=\"tag\" style=\"font-size: ". $size ."%;\">". $this->tags[$key] ."</a>, ";
+ $output.= "<a href=\"javascript:Tags('add', ". $key .");\" class=\"tag\" style=\"font-size: ". $size ."%;\">". $this->tags[$key] ."</a>, ";
}
+ $output = substr($output, 0, strlen($output)-2);
+ print $output;
+
} // getAvailableTags()
/**