issue84, further fixes to suppress warning message
authorAndreas Unterkircher <unki@netshadow.at>
Sun, 30 Dec 2007 15:32:25 +0000 (16:32 +0100)
committerAndreas Unterkircher <unki@netshadow.at>
Sun, 30 Dec 2007 15:32:25 +0000 (16:32 +0100)
phpfspot.class.php

index 23f0c5462c466621614c15e1e989df6deff8e46c..4b60743a28a0d53fb0bfb2f211d851d5da1d9088 100644 (file)
@@ -891,8 +891,9 @@ class PHPFSPOT {
       }
       elseif($this->cfg->rows_per_page > 0) {
 
       }
       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;
             $begin_with = 0;
+         }
          else {
 
             $begin_with = $_SESSION['begin_with'];
          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) {
 
       /* 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);
       
          /* 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 = "";
    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);
          foreach($_SESSION['selected_tags'] as $tag)
             $current_tags.= $tag .",";
          $current_tags = substr($current_tags, 0, strlen($current_tags)-1);