From 4047e28efd43011ff70d8c5b596aa1e8673a6246 Mon Sep 17 00:00:00 2001 From: Marcus Eibrink-Lunzenauer <lunzenauer@elan-ev.de> Date: Fri, 31 May 2024 11:35:04 +0000 Subject: [PATCH] Initialize `Trails\Controller#layout` before accessing it. Closes #4246 Merge request studip/studip!3077 --- lib/trails/Controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/trails/Controller.php b/lib/trails/Controller.php index a5a0ba7b3e3..bafb8db821a 100644 --- a/lib/trails/Controller.php +++ b/lib/trails/Controller.php @@ -31,7 +31,7 @@ class Controller protected Dispatcher $dispatcher; protected Response $response; protected bool $performed = false; - protected Template|string|null $layout; + protected Template|string|null $layout = null; protected string $format = 'html'; /** -- GitLab