From: hickert Date: Fri, 25 Jan 2008 09:06:39 +0000 (+0000) Subject: Fixed entries per page. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=83aed9f8f798c63fbba6627536950d74ae8185da;p=gosa.git Fixed entries per page. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8603 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/addons/gotomasses/class_gotomasses.inc b/gosa-core/plugins/addons/gotomasses/class_gotomasses.inc index cb1da6db9..49a8c0d5c 100644 --- a/gosa-core/plugins/addons/gotomasses/class_gotomasses.inc +++ b/gosa-core/plugins/addons/gotomasses/class_gotomasses.inc @@ -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; + } }