summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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()