summaryrefslogtreecommitdiffstats
path: root/phpfspot.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpfspot.class.php')
-rw-r--r--phpfspot.class.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/phpfspot.class.php b/phpfspot.class.php
index e052f3c..13517f2 100644
--- a/phpfspot.class.php
+++ b/phpfspot.class.php
@@ -436,9 +436,12 @@ class PHPFSPOT {
}
$current_tags = "";
- foreach($_SESSION['selected_tags'] as $tag)
- $current_tags.= $tag .",";
- $current_tags = substr($current_tags, 0, strlen($current_tags)-1);
+ if($_SESSION['selected_tags'] != "") {
+ foreach($_SESSION['selected_tags'] as $tag)
+ $current_tags.= $tag .",";
+ $current_tags = substr($current_tags, 0, strlen($current_tags)-1);
+ }
+
$extern_link = "http://". $_SERVER['SERVER_NAME'] ."/index.php?mode=showpi&tags=". $current_tags;
$this->tmpl->assign('extern_link', $extern_link);