Skip to content

Commit

Permalink
This small fix prevents that the forum frontend breaks whenever
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
luceos committed Apr 12, 2019
1 parent d3a5c91 commit bf2c5a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Forum/ForumServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function register()
$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') ?? '';
});
});

Expand Down

0 comments on commit bf2c5a5

Please sign in to comment.