From d2c43c70b0cdcb7f0fb1787bd26d61e688cf74e2 Mon Sep 17 00:00:00 2001 From: Roman Date: Fri, 7 Jun 2024 12:16:17 +0200 Subject: [PATCH] small bugfix for parse_url --- Core/Elements/TemplateDocument.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/Elements/TemplateDocument.class.php b/Core/Elements/TemplateDocument.class.php index 38c4100..8b8a436 100644 --- a/Core/Elements/TemplateDocument.class.php +++ b/Core/Elements/TemplateDocument.class.php @@ -96,7 +96,7 @@ class TemplateDocument extends Document { "name" => $settings->getSiteName(), "url" => [ "base" => $settings->getBaseUrl(), - "path" => $urlParts["path"], + "path" => $urlParts["path"] ?? "" , "query" => $urlParts["query"] ?? "", "fragment" => $urlParts["fragment"] ?? "" ],