From a352c9daf9c5e2ed1d83ef9398d50ae624d392e4 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 21 Nov 2017 13:30:58 +0100 Subject: [PATCH] body.phtml: provide a fallback in case no... ...inlineLayout has been given. fixes #3120 --- application/layouts/scripts/body.phtml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/application/layouts/scripts/body.phtml b/application/layouts/scripts/body.phtml index cc561f2b4..2464db4a2 100644 --- a/application/layouts/scripts/body.phtml +++ b/application/layouts/scripts/body.phtml @@ -16,7 +16,11 @@ if ($this->layout()->autorefreshInterval) { $refresh = ' data-icinga-refresh="' . $this->layout()->autorefreshInterval . '"'; } -$inlineLayoutScript = $this->layout()->inlineLayout . '.phtml'; +if ($this->layout()->inlineLayout) { + $inlineLayoutScript = $this->layout()->inlineLayout . '.phtml'; +} else { + $inlineLayoutScript = 'inline.phtml'; +} ?>