Code

fixed status line in posix tab
authoropensides <opensides@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 1 May 2006 15:28:22 +0000 (15:28 +0000)
committeropensides <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

index b7cbba26206588aa5e8f17863455a6f5fa002811..4ac237f2eab6a140881da39c26007c64ba3b3fcb 100644 (file)
@@ -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){