From 0850b4ce0be34ac6cae3077293e04059ba8324aa Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms Date: Mon, 17 Jun 2024 07:56:14 +0000 Subject: fixes #4311 Closes #4311 Merge request studip/studip!3115 --- lib/classes/helpbar/Helpbar.php | 2 +- templates/helpbar/helpbar.php | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/classes/helpbar/Helpbar.php b/lib/classes/helpbar/Helpbar.php index cc2c619..c4abfc4 100644 --- a/lib/classes/helpbar/Helpbar.php +++ b/lib/classes/helpbar/Helpbar.php @@ -265,7 +265,7 @@ class Helpbar extends WidgetContainer $template = $GLOBALS['template_factory']->open('helpbar/helpbar'); $template->widgets = $this->widgets; $template->open = $this->open; - $template->tour_data = $tour_data; + $template->tour_data = $tour_data ?? null; $content = $template->render(); } diff --git a/templates/helpbar/helpbar.php b/templates/helpbar/helpbar.php index cc77053..6f8efbb 100644 --- a/templates/helpbar/helpbar.php +++ b/templates/helpbar/helpbar.php @@ -1,5 +1,11 @@ +
- + @@ -41,7 +47,7 @@
- + -- cgit v1.0