From: Andreas Unterkircher Date: Sun, 1 Jul 2007 17:29:21 +0000 (+0000) Subject: only set anchor is it is really provided by the client X-Git-Tag: phpfspot-1.2~177 X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=commitdiff_plain;h=3e2811634f4bcbe703a24a7fab107a3f8d521d4c;hp=a19902be5b020202a23b037d43528c85514a3fc0 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 --- 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()