From 3e2811634f4bcbe703a24a7fab107a3f8d521d4c Mon Sep 17 00:00:00 2001 From: Andreas Unterkircher Date: Sun, 1 Jul 2007 17:29:21 +0000 Subject: [PATCH] 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 --- phpfspot.class.php | 6 ++++-- 1 file 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 "\n"; + if(isset($anchor)) + print "\n"; } // showPhotoIndex() -- 2.17.1