diff options
| author | Marcus Eibrink-Lunzenauer <lunzenauer@elan-ev.de> | 2024-05-31 11:35:04 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-05-31 11:35:04 +0000 |
| commit | 4047e28efd43011ff70d8c5b596aa1e8673a6246 (patch) | |
| tree | 6c4760c31934bb94ceb443a98894113bfd2132d9 | |
| parent | 555e162607bdb39e450fd79fe5997e71745cb481 (diff) | |
Initialize `Trails\Controller#layout` before accessing it.issue-4249
Closes #4246
Merge request studip/studip!3077
| -rw-r--r-- | lib/trails/Controller.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/trails/Controller.php b/lib/trails/Controller.php index a5a0ba7..bafb8db 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'; /** |
