From: Art4 Date: Sat, 7 Dec 2024 07:11:28 +0000 (+0000) Subject: fix non-capturing catch for PHP 7.4 support X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f36e118609cbfaa8886465454c7611f58b761290;p=friendica.git fix non-capturing catch for PHP 7.4 support --- diff --git a/src/Module/Special/HTTPException.php b/src/Module/Special/HTTPException.php index ae7cca3eac..f92d33c18a 100644 --- a/src/Module/Special/HTTPException.php +++ b/src/Module/Special/HTTPException.php @@ -88,7 +88,7 @@ class HTTPException try { $tpl = Renderer::getMarkupTemplate('http_status.tpl'); $content = Renderer::replaceMacros($tpl, $vars); - } catch (Throwable) { + } catch (Throwable $th) { $vars = array_map('htmlentities', $vars); $content = "

{$vars['$title']}

{$vars['$message']}

"; if ($this->isSiteAdmin) {