projects
/
phpfspot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
set a startup variable. unset it with the first call of the photo index page
[phpfspot.git]
/
phpfspot.class.php
diff --git
a/phpfspot.class.php
b/phpfspot.class.php
index 0960243203c583fb39f9312507f9983c20fe1741..9d159ff3ff02e09d46c374d50a0a23d1ccb89d87 100644
(file)
--- a/
phpfspot.class.php
+++ b/
phpfspot.class.php
@@
-399,7
+399,8
@@
class PHPFSPOT {
$count = count($photos);
$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) {
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");
$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()
} // showPhotoIndex()