diff options
author | Andreas Unterkircher <unki@netshadow.at> | 2007-12-30 16:32:25 +0100 |
---|---|---|
committer | Andreas Unterkircher <unki@netshadow.at> | 2007-12-30 16:32:25 +0100 |
commit | 0b99d3d170ab3d975c73b1ddc3ee83506f3843ba (patch) | |
tree | bdf08c628b84a0bb86f4439a551dee4b0128321f | |
parent | 3ca950a9f47ade37c1e805810efcce77d1b3be9d (diff) |
issue84, further fixes to suppress warning message
-rw-r--r-- | phpfspot.class.php | 7 |
1 files changed, 5 insertions, 2 deletions
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); |