Fix: on ne converti pas la date si elle est 0
This commit is contained in:
parent
d68383340b
commit
6269a9b353
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user