Don't try to save form for "None" backend.
This commit is contained in:
parent
3f03f3b4b7
commit
204c5a4d99
1 changed files with 23 additions and 22 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue