From: hickert Date: Mon, 4 Jun 2007 12:59:52 +0000 (+0000) Subject: Fixed logging X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5f8cd82086b73e609b1c0f7eaf2af12299b120e8;p=gosa.git Fixed logging git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6536 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/addons/logview/class_gosa_logview.inc b/plugins/addons/logview/class_gosa_logview.inc index 41903b60e..bc81e16ae 100644 --- a/plugins/addons/logview/class_gosa_logview.inc +++ b/plugins/addons/logview/class_gosa_logview.inc @@ -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.=" ".date("H:i:s d.m.Y",$line['timestamp']).""; $res.=" ".preg_replace("/,/",", ",$line['user']).""; $res.=" ".$line['result'].""; - $res.=" ".$line['repeated'].""; + if($line['repeated'] == 1){ + $res.=" -"; + }else{ + $res.=" ".($line['repeated']-1).""; + } $res.=" \n"; } mysql_close($link);