Code

fixed status line in posix tab
[gosa.git] / 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){