From 860ac26841fbe3b088f75bdd79da578fa35c6b48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20Klabbers?= Date: Fri, 12 Apr 2019 14:10:20 +0200 Subject: [PATCH] This small fix prevents that the forum frontend breaks whenever custom_less is NULL or unavailable in the database. We cannot rely on this value to exist or is incorrectly set to null and thus completely bricking the app. --- framework/core/src/Forum/ForumServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/src/Forum/ForumServiceProvider.php b/framework/core/src/Forum/ForumServiceProvider.php index 16a77e884..994092f4d 100644 --- a/framework/core/src/Forum/ForumServiceProvider.php +++ b/framework/core/src/Forum/ForumServiceProvider.php @@ -94,7 +94,7 @@ class ForumServiceProvider extends AbstractServiceProvider $assets->css(function (SourceCollector $sources) { $sources->addFile(__DIR__.'/../../less/forum.less'); $sources->addString(function () { - return $this->app->make(SettingsRepositoryInterface::class)->get('custom_less'); + return $this->app->make(SettingsRepositoryInterface::class)->get('custom_less') ?? ''; }); });