From: fabrixxm Date: Wed, 10 Apr 2019 18:57:22 +0000 (+0200) Subject: Use direct logic X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5a07afbc14d31be8dd6cd50884bbbe1f52e8b331;p=friendica.git Use direct logic --- diff --git a/mod/admin.php b/mod/admin.php index 7ee48f592e..fe06862962 100644 --- a/mod/admin.php +++ b/mod/admin.php @@ -1157,9 +1157,7 @@ function admin_page_site_post(App $a) // save storage backend form if (!is_null($storagebackend) && $storagebackend != "") { - if (!StorageManager::setBackend($storagebackend)) { - info(L10n::t('Invalid storage backend setting value.')); - } else { + if (StorageManager::setBackend($storagebackend)) { $storage_opts = $storagebackend::getOptions(); $storage_form_prefix=preg_replace('|[^a-zA-Z0-9]|' ,'', $storagebackend); $storage_opts_data = []; @@ -1185,6 +1183,8 @@ function admin_page_site_post(App $a) } $a->internalRedirect('admin/site' . $active_panel); } + } else { + info(L10n::t('Invalid storage backend setting value.')); } }