fixed PHP notice

This commit is contained in:
Roland Gruber 2012-02-18 13:47:31 +00:00
parent 0a70f0e584
commit a8e0c7d8b0
1 changed files with 4 additions and 1 deletions

View File

@ -1057,7 +1057,10 @@ class accountContainer {
$return['errorsOccured'] = 'true';
}
}
$forcePasswordChange = ($input['forcePasswordChange'] == 'true');
$forcePasswordChange = false;
if (isset($input['forcePasswordChange']) && ($input['forcePasswordChange'] == 'true')) {
$forcePasswordChange = true;
}
$return['forcePasswordChange'] = $forcePasswordChange;
if ($return['errorsOccured'] == 'false') {
// set new password