X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=blobdiff_plain;f=phpfspot.class.php;h=13517f2550e14444e209e05a7b795c291cf1731b;hp=e052f3c08e206e75e9e66ba3ca0a9149daccabac;hb=91120e6ad96ed11c65375ad027459db36b7fb979;hpb=4a4043f64bbb3b6757ff1d3edd81ec36a796cf00 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);