Only use AboutApp when the setting "setting.app_about" is set

And use empty string when it's not set
This commit is contained in:
Paul Vogel
2021-03-31 15:49:20 +02:00
committed by GitHub
parent 275315972f
commit d5ba835eed

View File

@@ -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'));