From 6269a9b353cda5f24148bb85d0bc5a09757094f0 Mon Sep 17 00:00:00 2001 From: Regis Houssin <regis@dolibarr.fr> Date: Fri, 4 Jan 2008 22:32:52 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20on=20ne=20converti=20pas=20la=20date=20s?= =?UTF-8?q?i=20elle=20est=20=E0=200?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/lib/ldap.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/lib/ldap.class.php b/htdocs/lib/ldap.class.php index db8ddda6bf4..f453d793e1b 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); -- GitLab