fix bug #58
This commit is contained in:
parent
9d4d1bb0b4
commit
923571c5a2
|
@ -53,7 +53,7 @@ class EditSettingsController extends Controller {
|
|||
];
|
||||
|
||||
foreach($settings as $setting) {
|
||||
if(Controller::request($setting)) {
|
||||
if(Controller::request($setting)!==null) {
|
||||
$settingInstance = Setting::getSetting($setting);
|
||||
$settingInstance->value = Controller::request($setting);
|
||||
$settingInstance->store();
|
||||
|
@ -68,7 +68,7 @@ class EditSettingsController extends Controller {
|
|||
|
||||
Response::respondSuccess();
|
||||
}
|
||||
|
||||
|
||||
public function handleLanguages() {
|
||||
$allowed = json_decode(Controller::request('allowedLanguages'));
|
||||
$supported = json_decode(Controller::request('supportedLanguages'));
|
||||
|
@ -83,4 +83,4 @@ class EditSettingsController extends Controller {
|
|||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue