Default maintenance reason to empty string in Module\Maintenance

- Address https://github.com/friendica/friendica/issues/12486#issuecomment-1383250546
This commit is contained in:
Hypolite Petovan 2023-01-18 21:01:07 -05:00
parent 3b99b98678
commit c05956137a

View file

@ -36,7 +36,7 @@ class Maintenance extends BaseModule
{
protected function content(array $request = []): string
{
$reason = DI::config()->get('system', 'maintenance_reason');
$reason = DI::config()->get('system', 'maintenance_reason') ?? '';
if ((substr(Strings::normaliseLink($reason), 0, 7) === 'http://') ||
(substr(Strings::normaliseLink($reason), 0, 8) === 'https://')) {