From: hickert Date: Fri, 18 Dec 2009 15:22:57 +0000 (+0000) Subject: Updated page selection X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=18d2969c2e669e9b16373ddfb5b60031f017fa48;p=gosa.git Updated page selection git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14912 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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){