From 0b99d3d170ab3d975c73b1ddc3ee83506f3843ba Mon Sep 17 00:00:00 2001 From: Andreas Unterkircher Date: Sun, 30 Dec 2007 16:32:25 +0100 Subject: issue84, further fixes to suppress warning message --- phpfspot.class.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'phpfspot.class.php') diff --git a/phpfspot.class.php b/phpfspot.class.php index 23f0c54..4b60743 100644 --- a/phpfspot.class.php +++ b/phpfspot.class.php @@ -891,8 +891,9 @@ class PHPFSPOT { } elseif($this->cfg->rows_per_page > 0) { - if(!$_SESSION['begin_with'] || $_SESSION['begin_with'] == 0) + if(!isset($_SESSION['begin_with']) || $_SESSION['begin_with'] == 0) { $begin_with = 0; + } else { $begin_with = $_SESSION['begin_with']; @@ -967,6 +968,8 @@ class PHPFSPOT { /* do we have to display the page selector ? */ if($this->cfg->rows_per_page != 0) { + + $page_select = ""; /* calculate the page switchers */ $previous_start = $begin_with - ($this->cfg->rows_per_page * $this->cfg->thumbs_per_row); @@ -1853,7 +1856,7 @@ class PHPFSPOT { private function getCurrentTags() { $current_tags = ""; - if($_SESSION['selected_tags'] != "") { + if(isset($_SESSION['selected_tags']) && $_SESSION['selected_tags'] != "") { foreach($_SESSION['selected_tags'] as $tag) $current_tags.= $tag .","; $current_tags = substr($current_tags, 0, strlen($current_tags)-1); -- cgit v1.2.3-18-g5258