mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
handle account_last_change is string and 0
This commit is contained in:
parent
d02eec55fb
commit
9f5f60bd0f
@ -1006,7 +1006,7 @@
|
||||
if (!isset($auth)) $auth =& CreateObject('phpgwapi.auth');
|
||||
$accLPWDC = $auth->getLastPwdChange($userData['account_lid']);
|
||||
if ($accLPWC !== false) $userData['account_lastpwd_change'] = $accLPWDC;
|
||||
$var['mustchangepassword']= (isset($userData['account_lastpwd_change']) && $userData['account_lastpwd_change']==0 ? ' X' : ' ');
|
||||
$var['mustchangepassword']= (isset($userData['account_lastpwd_change']) && ((is_string($userData['account_lastpwd_change']) && $userData['account_lastpwd_change']==="0")||(is_int($userData['account_lastpwd_change']) && $userData['account_lastpwd_change']===0)) ? ' X' : ' ');
|
||||
unset($acl);
|
||||
|
||||
if ($userData['status'])
|
||||
@ -1367,7 +1367,7 @@
|
||||
if (!isset($auth)) $auth =& CreateObject('phpgwapi.auth');
|
||||
$accLPWDC = $auth->getLastPwdChange($userData['account_lid']);
|
||||
if ($accLPWC !== false) $userData['account_lastpwd_change'] = $accLPWDC;
|
||||
$userData['mustchangepassword'] = (isset($userData['account_lastpwd_change']) && $userData['account_lastpwd_change']==0?true:false);
|
||||
$userData['mustchangepassword'] = (isset($userData['account_lastpwd_change']) && ((is_string($userData['account_lastpwd_change']) && $userData['account_lastpwd_change']==="0")||(is_int($userData['account_lastpwd_change']) && $userData['account_lastpwd_change']===0))?true:false);
|
||||
unset($acl);
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user