diff --git a/htdocs/lib/ldap.class.php b/htdocs/lib/ldap.class.php index db8ddda6bf4a2a36a6c904f054a09bbb3bdbbd59..f453d793e1b64d518938466eb9c1778a3721e4d8 100644 --- a/htdocs/lib/ldap.class.php +++ b/htdocs/lib/ldap.class.php @@ -913,7 +913,7 @@ class Ldap $this->mobile = $this->ldap_utf8_decode($result[0][$this->attr_mobile][0]); $this->uacf = $this->parseUACF($this->ldap_utf8_decode($result[0]["useraccountcontrol"][0])); - $this->pwdlastset = $this->convert_time($this->ldap_utf8_decode($result[0]["pwdlastset"][0])); + $this->pwdlastset = ($result[0]["pwdlastset"][0] != 0)?$this->convert_time($this->ldap_utf8_decode($result[0]["pwdlastset"][0])):0; $this->badpwdtime = $this->convert_time($this->ldap_utf8_decode($result[0]["badpasswordtime"][0])); ldap_free_result($this->result);