mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:05:16 +01:00
Fixed logout field not showing up properly
This commit is contained in:
parent
580bd23d15
commit
2912a3d68f
@ -45,30 +45,34 @@
|
||||
// I still want it to be printed here. This will alert the admin there
|
||||
// is a problem.
|
||||
if ($phpgw->db->f("li") && $phpgw->db->f("lo")) {
|
||||
$total = $phpgw->db->f("lo") - $phpgw->db->f("li");
|
||||
if ($total > 86400 && $total > 172800)
|
||||
$total = ($phpgw->db->f("lo") - $phpgw->db->f("li"));
|
||||
if ($total > 86400 && $total > 172800) {
|
||||
$total = gmdate("z \d\a\y\s - G:i:s",$total);
|
||||
else if ($total > 172800)
|
||||
} else if ($total > 172800) {
|
||||
$total = gmdate("z \d\a\y - G:i:s",$total);
|
||||
else
|
||||
} else {
|
||||
$total = gmdate("G:i:s",$total);
|
||||
} else
|
||||
}
|
||||
} else {
|
||||
$total = " ";
|
||||
}
|
||||
|
||||
if ($phpgw->db->f("li"))
|
||||
if ($phpgw->db->f("li")) {
|
||||
$li = $phpgw->common->show_date($phpgw->db->f("li"));
|
||||
else
|
||||
} else {
|
||||
$li = " ";
|
||||
}
|
||||
|
||||
if ($phpgw->db->f("lo"))
|
||||
if ($phpgw->db->f("lo") != '') {
|
||||
$lo = $phpgw->common->show_date($phpgw->db->f("lo"));
|
||||
else
|
||||
} else {
|
||||
$lo = " ";
|
||||
}
|
||||
|
||||
$t->set_var("row_loginid",$phpgw->db->f("loginid"));
|
||||
$t->set_var("row_ip",$phpgw->db->f("ip"));
|
||||
$t->set_var("row_li",$li);
|
||||
$t->set_var("row_lo",$li);
|
||||
$t->set_var("row_lo",$lo);
|
||||
$t->set_var("row_total",$total);
|
||||
|
||||
if ($phpgw->db->num_rows() == 1) {
|
||||
|
Loading…
Reference in New Issue
Block a user