Code

Updated Pager
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 29 Dec 2009 12:46:44 +0000 (12:46 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 29 Dec 2009 12:46:44 +0000 (12:46 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14981 594d385d-05f5-0310-b6e9-bd551577e9d8

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;