Code

Fixed logging
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 4 Jun 2007 12:59:52 +0000 (12:59 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 4 Jun 2007 12:59:52 +0000 (12:59 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6536 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/addons/logview/class_gosa_logview.inc

index 41903b60e9415f4a08957aa48d3fe1fac2995354..bc81e16ae8c4631d04ecd58aed5f368d929b44d7 100644 (file)
@@ -17,13 +17,14 @@ class gosa_logview extends plugin
   var $regex          = "*";
 
   var $start  = 0;
-  var $sort   = 2;
+  var $sort   = 1;
 
   var $sort_direction = "down";
   var $fields         = array("action","timestamp","user","result","repeated");
   var $range          = 25;
   var $view_logged    = FALSE;
 
+
   function gosa_logview ($config, $dn= NULL)
   {
     /* Include config object */
@@ -260,7 +261,11 @@ class gosa_logview extends plugin
           $res.="   <td>".date("H:i:s d.m.Y",$line['timestamp'])."</td>";
           $res.="   <td title='".$line['object']."'>".preg_replace("/,/",", ",$line['user'])."</td>"; 
           $res.="   <td>".$line['result']."</td>";
-          $res.="   <td>".$line['repeated']."</td>";
+          if($line['repeated'] == 1){
+            $res.="   <td>-</td>";
+          }else{
+            $res.="   <td>".($line['repeated']-1)."</td>";
+          }
           $res.=" </tr>\n";
         }
         mysql_close($link);