diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-05-21 11:17:33 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-05-21 11:17:33 +0000 |
| commit | 98ee46ee0cb82934ff111a72d5cb7a93b68219d8 (patch) | |
| tree | 3b8aff05e0ecb3142d6a44fb0872f1d3c7743335 | |
| parent | c0aade671ebcf6afe6c918e1d2192fe5cf4cb32c (diff) | |
fixes #4197
Closes #4197
Merge request studip/studip!3028
| -rw-r--r-- | lib/flexi/Template.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/flexi/Template.php b/lib/flexi/Template.php index de2547e..d5c0310 100644 --- a/lib/flexi/Template.php +++ b/lib/flexi/Template.php @@ -193,7 +193,7 @@ abstract class Template */ public function set_layout(Template|string|null $layout): void { - $this->layout = $this->factory->open($layout); + $this->layout = $layout ? $this->factory->open($layout) : null; } /** |
