From 18d2969c2e669e9b16373ddfb5b60031f017fa48 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 18 Dec 2009 15:22:57 +0000 Subject: [PATCH] Updated page selection git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14912 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/rsyslog/addons/rsyslog/class_rsyslog.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gosa-plugins/rsyslog/addons/rsyslog/class_rsyslog.inc b/gosa-plugins/rsyslog/addons/rsyslog/class_rsyslog.inc index fe25e7b9c..da20ef511 100644 --- a/gosa-plugins/rsyslog/addons/rsyslog/class_rsyslog.inc +++ b/gosa-plugins/rsyslog/addons/rsyslog/class_rsyslog.inc @@ -176,12 +176,16 @@ class rsyslog extends plugin } if($result['count']){ + + if($result['count'] < $this->page) $this->page = 0; + $filter.= "ORDER BY ".$this->sort_value." ".$this->sort_type." "; if($this->limit != "-"){ $filter.= "LIMIT ".$this->page.", ".$this->limits[$this->limit]; }else{ $this->page = 0; } + $query = "SELECT * ".$filter; $res = mysql_query($query, $link); if($res){ -- 2.30.2