This commit is contained in:
Guillermo 2017-12-29 17:50:46 -03:00
parent 9d4d1bb0b4
commit 923571c5a2
1 changed files with 3 additions and 3 deletions

View File

@ -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 {
}
}
}
}