issue13, if user jumps into from an external link, immediatley display the photo...
[phpfspot.git] / phpfspot.class.php
index 9d159ff3ff02e09d46c374d50a0a23d1ccb89d87..204c8a7374f4c687ba88ebb2e96d149943f98c7e 100644 (file)
@@ -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);