]> git.mxchange.org Git - friendica.git/commitdiff
Default maintenance reason to empty string in Module\Maintenance
authorHypolite Petovan <hypolite@mrpetovan.com>
Thu, 19 Jan 2023 02:01:07 +0000 (21:01 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Thu, 19 Jan 2023 02:01:07 +0000 (21:01 -0500)
- Address https://github.com/friendica/friendica/issues/12486#issuecomment-1383250546

src/Module/Maintenance.php

index 412723db318d89ffdfe1eb5a0e49ead59f372e61..67f65b8e3962fbdc5392b653918e6230ba7d60ce 100644 (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://')) {