]> git.mxchange.org Git - friendica.git/commitdiff
fix non-capturing catch for PHP 7.4 support
authorArt4 <art4@wlabs.de>
Sat, 7 Dec 2024 07:11:28 +0000 (07:11 +0000)
committerArt4 <art4@wlabs.de>
Sat, 7 Dec 2024 07:11:28 +0000 (07:11 +0000)
src/Module/Special/HTTPException.php

index ae7cca3eace1ac7bfdb635a98341549b90ee595e..f92d33c18abc03fe9bc99c9136022ecdf6a515df 100644 (file)
@@ -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 = "<h1>{$vars['$title']}</h1><p>{$vars['$message']}</p>";
                                if ($this->isSiteAdmin) {