forked from extern/egroupware
fix typo while checking old last-password-change
This commit is contained in:
parent
eb7143d8b9
commit
5144dd82e7
@ -882,10 +882,10 @@
|
|||||||
settype($account_id,'integer');
|
settype($account_id,'integer');
|
||||||
$account_id = (int)($_GET['account_id'] ? $_GET['account_id'] : $accountid);
|
$account_id = (int)($_GET['account_id'] ? $_GET['account_id'] : $accountid);
|
||||||
|
|
||||||
//echo $account_id.'#<br>';
|
//echo '<br>#'.$account_id.'#<br>';
|
||||||
$prevVal = $GLOBALS['egw']->accounts->id2name($account_id,'account_lastpwd_change').'#<br>';
|
$prevVal = $GLOBALS['egw']->accounts->id2name($account_id,'account_lastpwd_change');
|
||||||
//echo $prevVal.'#<br>'; // previous Value was force password change by admin
|
//echo '<br>#'.$prevVal.'#<br>'; // previous Value was forced password change by admin
|
||||||
if ($prevVal==0) $userData['account_lastpwd_change']=egw_time::to('now','ts');
|
if (isset($prevVal) && $prevVal==0) $userData['account_lastpwd_change']=egw_time::to('now','ts');
|
||||||
}
|
}
|
||||||
if($userData['account_primary_group'] && (!isset($userData['account_groups']) || !in_array($userData['account_primary_group'],$userData['account_groups'])))
|
if($userData['account_primary_group'] && (!isset($userData['account_groups']) || !in_array($userData['account_primary_group'],$userData['account_groups'])))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user