From: opensides Date: Mon, 1 May 2006 15:28:22 +0000 (+0000) Subject: fixed status line in posix tab X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a96624d83a707d1930e787f795762d806c8659dc;p=gosa.git fixed status line in posix tab git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3173 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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){