From: hickert Date: Tue, 29 Dec 2009 12:46:44 +0000 (+0000) Subject: Updated Pager X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=abcc9081a3bffb38a32efb30319de1954097a879;p=gosa.git Updated Pager git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14981 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 c67086183..4c7ed5bc6 100644 --- a/gosa-plugins/rsyslog/addons/rsyslog/class_rsyslog.inc +++ b/gosa-plugins/rsyslog/addons/rsyslog/class_rsyslog.inc @@ -140,7 +140,7 @@ class rsyslog extends plugin $smarty->assign("upimg", "\\/"); $smarty->assign("result", $result); $smarty->assign("matches", sprintf(_("%s entries match the filter"), $result["count"])); - if($this->limit != '-'){ + if($this->limits[$this->limit] != '-'){ $smarty->assign("page_sel", range_selector($result['count'],$this->page,$this->limits[$this->limit])); }else{ $smarty->assign("page_sel", ""); @@ -216,7 +216,7 @@ class rsyslog extends plugin if($result['count'] < $this->page) $this->page = 0; $filter.= "ORDER BY ".$this->sort_value." ".$this->sort_type.", DeviceReportedTime ".$this->sort_type." "; - if($this->limit != "-"){ + if($this->limits[$this->limit]!= "-"){ $filter.= "LIMIT ".$this->page.", ".$this->limits[$this->limit]; }else{ $this->page = 0;