X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=blobdiff_plain;f=phpfspot.class.php;h=9d159ff3ff02e09d46c374d50a0a23d1ccb89d87;hp=0960243203c583fb39f9312507f9983c20fe1741;hb=4b243ea6dcf859c392ec52aad66a580c99fe2bb0;hpb=a19902be5b020202a23b037d43528c85514a3fc0;ds=sidebyside 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()