summaryrefslogtreecommitdiffstats
path: root/phpfspot.class.php
diff options
context:
space:
mode:
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()
/**