diff --git a/lib/classes/helpbar/Helpbar.php b/lib/classes/helpbar/Helpbar.php
index cc2c6192b338e68b55fd0be6459afdc2f1ffe2ff..c4abfc46ab036298ddd3a1cad8c5fab351387a49 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 cc77053c8bd1428417853a36b3bef3d993e0f9a2..6f8efbbb1d5a65efc515f65ccaf553e16ddd6766 100644
--- a/templates/helpbar/helpbar.php
+++ b/templates/helpbar/helpbar.php
@@ -1,5 +1,11 @@
+<?php
+/**
+ * @var bool $open
+ * @var Widget[] $widgets
+ */
+?>
 <div class="helpbar-container">
-    <?= SkipLinks::addIndex(_('Tipps & Hilfe'), 'helpbar_icon', 920) ?>
+    <? SkipLinks::addIndex(_('Tipps & Hilfe'), 'helpbar_icon', 920) ?>
     <a id="helpbar_icon" href="#" class="helpbar-toggler" data-toggles=".helpbar" role="button"
        title="<?= _('Hilfelasche anzeigen/verstecken') ?>" aria-controls="helpbar-content"
        aria-expanded="<?= $open ? 'true' : 'false' ?>">
@@ -41,7 +47,7 @@
         </ul>
     </div>
 </div>
-<? if ($tour_data['active_tour_id']) : ?>
+<? if (!empty($tour_data['active_tour_id'])) : ?>
     <script>
         STUDIP.Tour.init('<?=$tour_data['active_tour_id']?>', '<?=$tour_data['active_tour_step_nr']?>')
     </script>