mirror of
https://github.com/friendica/friendica
synced 2024-11-18 16:23:41 +00:00
Default maintenance reason to empty string in Module\Maintenance
- Address https://github.com/friendica/friendica/issues/12486#issuecomment-1383250546
This commit is contained in:
parent
3b99b98678
commit
c05956137a
1 changed files with 1 additions and 1 deletions
|
@ -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://')) {
|
||||
|
|
Loading…
Reference in a new issue