From: Philipp Date: Mon, 2 Jan 2023 01:27:05 +0000 (+0100) Subject: Fix Admin\Site X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=376e0a93972efb84bd8e5fbfb87d2670105a97aa;p=friendica.git Fix Admin\Site --- diff --git a/src/Module/Admin/Site.php b/src/Module/Admin/Site.php index cf2f6c5358..f572d3e725 100644 --- a/src/Module/Admin/Site.php +++ b/src/Module/Admin/Site.php @@ -211,19 +211,19 @@ class Site extends BaseAdmin DI::config()->set('system', 'touch_icon' , $touch_icon, false); if ($banner == "") { - DI::config()->set('system', 'banner', false); + DI::config()->delete('system', 'banner', false); } else { DI::config()->set('system', 'banner', $banner, false); } if (empty($email_banner)) { - DI::config()->set('system', 'email_banner', false); + DI::config()->delete('system', 'email_banner', false); } else { DI::config()->set('system', 'email_banner', $email_banner, false); } if (empty($additional_info)) { - DI::config()->set('config', 'info', false); + DI::config()->delete('config', 'info', false); } else { DI::config()->set('config', 'info', $additional_info, false); } @@ -232,12 +232,12 @@ class Site extends BaseAdmin Theme::install($theme); if ($theme_mobile == '---') { - DI::config()->set('system', 'mobile-theme', false); + DI::config()->delete('system', 'mobile-theme', false); } else { DI::config()->set('system', 'mobile-theme', $theme_mobile, false); } if ($singleuser == '---') { - DI::config()->set('system', 'singleuser', false); + DI::config()->delete('system', 'singleuser', false); } else { DI::config()->set('system', 'singleuser', $singleuser, false); }