diff --git a/interface/web/tools/interface_settings.php b/interface/web/tools/interface_settings.php index f3751dfb378f305dfe4b2a97fa71170f33f4a472..1ec67c592c3ba00d0990cc30aecff8e44ddb13a0 100644 --- a/interface/web/tools/interface_settings.php +++ b/interface/web/tools/interface_settings.php @@ -90,10 +90,7 @@ class page_action extends tform_actions { global $app, $conf; if($conf['demo_mode'] == true && $this->id <= 3) $app->tform->errorMessage .= 'This function is disabled in demo mode.'; - - $_SESSION['s']['user']['language'] = $_POST['language']; - $_SESSION['s']['language'] = $_POST['language']; - + if(@is_array($this->dataRecord['modules']) && !in_array($this->dataRecord['startmodule'],$this->dataRecord['modules'])) { $app->tform->errorMessage .= $app->tform->wordbook['startmodule_err']; }