Code

Fixed entries per page.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 25 Jan 2008 09:06:39 +0000 (09:06 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 25 Jan 2008 09:06:39 +0000 (09:06 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8603 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/addons/gotomasses/class_gotomasses.inc

index cb1da6db9f829a80caa1c8f7713789bbfb7f1685..49a8c0d5cb105f9ea30c02be7365ec22c6c0c9bd 100644 (file)
@@ -317,6 +317,15 @@ class gotomasses extends plugin
         $this->start = $start;
       }
     }
+
+    /* Check start stop and reset if necessary */
+    $count = $this->o_queue->number_of_queued_entries();
+    if($this->start >= $count){
+      $this->start = $count -1;
+    }
+    if($this->start < 0){
+      $this->start = 0;
+    }
   }