BUG 0000 Forgot passwd enabled checkbox error FIXED

This commit is contained in:
Erik Amaru Ortiz
2011-10-31 17:04:02 -04:00
parent 32bc0379a3
commit 13c0794e56

View File

@@ -21,12 +21,12 @@
$conf = new Configurations;
$conf->loadConfig($obj, 'ENVIRONMENT_SETTINGS','');
$conf->aConfig['login_enableForgotPassword'] = $_POST['acceptRP'];
$conf->aConfig['login_enableForgotPassword'] = isset($_POST['acceptRP']) ? $_POST['acceptRP'] : 'off';
$conf->aConfig['login_defaultLanguage'] = $_POST['lang'];
$conf->saveConfig('ENVIRONMENT_SETTINGS', '');
$response->success = true;
if ($_POST['acceptRP'])
if (isset($_POST['acceptRP']) && $_POST['acceptRP'])
$response->enable = true;
else
$response->enable = false;