X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=blobdiff_plain;f=phpfspot.class.php;h=204c8a7374f4c687ba88ebb2e96d149943f98c7e;hp=9d159ff3ff02e09d46c374d50a0a23d1ccb89d87;hb=8f56c03f5e097d31ba940e6f97f65e0e23ae3861;hpb=d7790a08d8d457bf07d0277fc9fda3811faf2362 diff --git a/phpfspot.class.php b/phpfspot.class.php index 9d159ff..204c8a7 100644 --- a/phpfspot.class.php +++ b/phpfspot.class.php @@ -532,7 +532,10 @@ class PHPFSPOT { $current_tags = substr($current_tags, 0, strlen($current_tags)-1); } - $extern_link = "http://". $_SERVER['SERVER_NAME'] ."/index.php?mode=showpi&tags=". $current_tags; + $extern_link = "http://". $_SERVER['SERVER_NAME'] ."/index.php?mode=showpi"; + if($current_tags != "") { + $extern_link.= "&tags=". $current_tags; + } $this->tmpl->assign('extern_link', $extern_link); $this->tmpl->assign('count', $count);