summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 63933fc)
raw | patch | inline | side by side (parent: 63933fc)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 4 Jun 2007 12:59:52 +0000 (12:59 +0000) | ||
committer | hickert <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 | patch | blob | history |
diff --git a/plugins/addons/logview/class_gosa_logview.inc b/plugins/addons/logview/class_gosa_logview.inc
index 41903b60e9415f4a08957aa48d3fe1fac2995354..bc81e16ae8c4631d04ecd58aed5f368d929b44d7 100644 (file)
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 */
$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);