From d5ba835eed030f019177049a236c2932976a1bfd Mon Sep 17 00:00:00 2001 From: Paul Vogel Date: Wed, 31 Mar 2021 15:49:20 +0200 Subject: [PATCH] Only use AboutApp when the setting "setting.app_about" is set And use empty string when it's not set --- app/Composers/AppComposer.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/Composers/AppComposer.php b/app/Composers/AppComposer.php index 5776e456..650693d4 100644 --- a/app/Composers/AppComposer.php +++ b/app/Composers/AppComposer.php @@ -61,7 +61,13 @@ class AppComposer */ public function compose(View $view) { - $view->withAboutApp(Markdown::convertToHtml($this->config->get('setting.app_about'))); + if ($this->config->get('setting.app_about')) { + $about = Markdown::convertToHtml($this->config->get('setting.app_about')); + } else { + $about = ''; + } + + $view->withAboutApp($about); $view->withAppAnalytics($this->config->get('setting.app_analytics')); $view->withAppAnalyticsGoSquared($this->config->get('setting.app_analytics_gs')); $view->withAppAnalyticsPiwikUrl($this->config->get('setting.app_analytics_piwik_url'));