From 376e0a93972efb84bd8e5fbfb87d2670105a97aa Mon Sep 17 00:00:00 2001 From: Philipp Date: Mon, 2 Jan 2023 02:27:05 +0100 Subject: [PATCH] Fix Admin\Site --- src/Module/Admin/Site.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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); }