summaryrefslogtreecommitdiffstats
path: root/phpfspot.class.php
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2007-07-01 17:29:21 +0000
committerAndreas Unterkircher <unki@netshadow.at>2007-07-01 17:29:21 +0000
commit3e2811634f4bcbe703a24a7fab107a3f8d521d4c (patch)
treec75b032bf287203c282695cbfbe6f215179afa65 /phpfspot.class.php
parenta19902be5b020202a23b037d43528c85514a3fc0 (diff)
only set anchor is it is really provided by the client
git-svn-id: file:///var/lib/svn/phpfspot/trunk@158 fa6a889d-dae6-447d-9e79-4ba9a3039384
Diffstat (limited to 'phpfspot.class.php')
-rw-r--r--phpfspot.class.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/phpfspot.class.php b/phpfspot.class.php
index 0960243..9d159ff 100644
--- a/phpfspot.class.php
+++ b/phpfspot.class.php
@@ -399,7 +399,8 @@ class PHPFSPOT {
$count = count($photos);
- $anchor = $_SESSION['begin_with'];
+ if(isset($_SESSION['begin_with']) && $_SESSION['begin_with'] != "")
+ $anchor = $_SESSION['begin_with'];
if(!isset($this->cfg->rows_per_page) || $this->cfg->rows_per_page == 0) {
@@ -545,7 +546,8 @@ class PHPFSPOT {
$this->tmpl->show("photo_index.tpl");
- print "<script language=\"JavaScript\">self.location.hash = '#image". $anchor ."';</script>\n";
+ if(isset($anchor))
+ print "<script language=\"JavaScript\">self.location.hash = '#image". $anchor ."';</script>\n";
} // showPhotoIndex()