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
1 changed files with 23 additions and 22 deletions

View File

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