Code

Updated Pager
[gosa.git] / gosa-plugins / rsyslog / addons / rsyslog / class_rsyslog.inc
index c67086183cc34114f3df895bd36b307dad0187dd..4c7ed5bc6358949b6fc490251f719a84f89df9a3 100644 (file)
@@ -140,7 +140,7 @@ class rsyslog extends plugin
     $smarty->assign("upimg", "<img src='images/lists/sort-up.png' class='center' alt='\\/' border='0'>");
     $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;