From: Hypolite Petovan Date: Thu, 19 Jan 2023 02:01:07 +0000 (-0500) Subject: Default maintenance reason to empty string in Module\Maintenance X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c05956137af4775f89865f8e207ace4b73c9a315;p=friendica.git Default maintenance reason to empty string in Module\Maintenance - Address https://github.com/friendica/friendica/issues/12486#issuecomment-1383250546 --- diff --git a/src/Module/Maintenance.php b/src/Module/Maintenance.php index 412723db31..67f65b8e39 100644 --- a/src/Module/Maintenance.php +++ b/src/Module/Maintenance.php @@ -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://')) {