Skip to content
Snippets Groups Projects
Commit 6269a9b3 authored by Regis Houssin's avatar Regis Houssin
Browse files

Fix: on ne converti pas la date si elle est à 0

parent d6838334
Branches
Tags
No related merge requests found
...@@ -913,7 +913,7 @@ class Ldap ...@@ -913,7 +913,7 @@ class Ldap
$this->mobile = $this->ldap_utf8_decode($result[0][$this->attr_mobile][0]); $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->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])); $this->badpwdtime = $this->convert_time($this->ldap_utf8_decode($result[0]["badpasswordtime"][0]));
ldap_free_result($this->result); ldap_free_result($this->result);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment