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
|
@ -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 New Issue
Block a user