fix typo, as the account_lastpwd_change was not altered anymore on password change

This commit is contained in:
Klaus Leithoff 2011-05-11 09:39:02 +00:00
parent 76980e665c
commit 9ec96b10e4

View File

@ -236,7 +236,7 @@ class auth_sql implements auth_backend
private function _update_passwd($encrypted_passwd,$new_passwd,$account_id,$admin=false,$update_lastpw_change=true)
{
$update = array('account_pwd' => $encrypted_passwd);
if ($update_lastpw_change) $write['account_lastpwd_change'] = time();
if ($update_lastpw_change) $update['account_lastpwd_change'] = time();
$this->db->update($this->table,$update,array(
'account_id' => $account_id,