From 83aed9f8f798c63fbba6627536950d74ae8185da Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 25 Jan 2008 09:06:39 +0000 Subject: [PATCH] Fixed entries per page. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8603 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/plugins/addons/gotomasses/class_gotomasses.inc | 9 +++++++++ 1 file changed, 9 insertions(+) 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; + } } -- 2.30.2