From a96624d83a707d1930e787f795762d806c8659dc Mon Sep 17 00:00:00 2001 From: opensides Date: Mon, 1 May 2006 15:28:22 +0000 Subject: [PATCH] fixed status line in posix tab git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3173 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/posix/class_posixAccount.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/personal/posix/class_posixAccount.inc b/plugins/personal/posix/class_posixAccount.inc index b7cbba262..4ac237f2e 100644 --- a/plugins/personal/posix/class_posixAccount.inc +++ b/plugins/personal/posix/class_posixAccount.inc @@ -114,9 +114,12 @@ class posixAccount extends plugin /* Generate status text */ $current= date("U"); + + $current= floor($current / 60 /60 / 24); + if (($current >= $this->shadowExpire) && $this->shadowExpire){ $this->status= _("expired"); - if (($this->shadowExpire - $current) < $this->shadowInactive){ + if (($current - $this->shadowExpire) < $this->shadowInactive){ $this->status.= _(", grace time active"); } } elseif (($this->shadowLastChange + $this->shadowMin) >= $current){ -- 2.30.2