Don't try to save form for "None" backend.

This commit is contained in:
fabrixxm 2018-12-14 14:17:15 +01:00 committed by Hypolite Petovan
parent 3f03f3b4b7
commit 204c5a4d99

View File

@ -1176,6 +1176,7 @@ function admin_page_site_post(App $a)
StorageManager::setBackend($storagebackend);
// save storage backend form
if (!is_null($storagebackend) && $storagebackend != "") {
$storage_opts = $storagebackend::getOptions();
$storage_form_prefix=preg_replace('|[^a-zA-Z0-9]|' ,'', $storagebackend);
$storage_opts_data = [];
@ -1201,7 +1202,7 @@ function admin_page_site_post(App $a)
}
$a->internalRedirect('admin/site' . $active_panel);
}
}