summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f8d5e50)
raw | patch | inline | side by side (parent: f8d5e50)
author | opensides <opensides@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 1 May 2006 15:28:22 +0000 (15:28 +0000) | ||
committer | opensides <opensides@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 1 May 2006 15:28:22 +0000 (15:28 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3173 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/personal/posix/class_posixAccount.inc | patch | blob | history |
diff --git a/plugins/personal/posix/class_posixAccount.inc b/plugins/personal/posix/class_posixAccount.inc
index b7cbba26206588aa5e8f17863455a6f5fa002811..4ac237f2eab6a140881da39c26007c64ba3b3fcb 100644 (file)
/* 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){