Code

Fixed expiration detection
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 6 Jul 2010 05:10:17 +0000 (05:10 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 6 Jul 2010 05:10:17 +0000 (05:10 +0000)
.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@18932 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/functions.inc

index 9e9a6d3ed1835bedb0442772b4832f218e98480d..ba49c80e52d5a795052441275660a61b390f5a7b 100644 (file)
@@ -670,7 +670,7 @@ function ldap_expired_account($config, $userdn, $username)
     $ldap->cd($config->current['BASE']);
     $ldap->cat($userdn);
     $attrs= $ldap->fetch();
-    $current= floor($date("U") /60 /60 /24);
+    $current= floor(date("U") /60 /60 /24);
 
     // Fetch required attributes 
     foreach(array('shadowExpire','shadowLastChange','shadowMax','shadowMin',