aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/tour.php
diff options
context:
space:
mode:
authorDavid Siegfried <david.siegfried@uni-vechta.de>2022-11-15 11:35:36 +0000
committerDavid Siegfried <david.siegfried@uni-vechta.de>2022-11-15 11:35:36 +0000
commit90ada48fb04ebcacee431cdfb78f0a63d594ed09 (patch)
treec32909d0f774d9ffdccd6bbaa6fc088294f2523c /app/controllers/tour.php
parentb8cc064f443fb1ae4de35987d25c1618bcdb122e (diff)
prevent php8-warnings, closes #1770
Closes #1770 Merge request studip/studip!1148
Diffstat (limited to 'app/controllers/tour.php')
-rw-r--r--app/controllers/tour.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/tour.php b/app/controllers/tour.php
index 54dfeff..a288ab2 100644
--- a/app/controllers/tour.php
+++ b/app/controllers/tour.php
@@ -89,7 +89,7 @@ class TourController extends AuthenticatedController
}
$data['route_step_nr'] = $first_step;
$next_first_step = $first_step;
- while ($this->route === $this->tour->steps[$next_first_step - 1]->route) {
+ while (isset($this->tour->steps[$next_first_step - 1]) && $this->route === $this->tour->steps[$next_first_step - 1]->route) {
$data['data'][] = [
'step_nr' => $this->tour->steps[$next_first_step - 1]->step,
'element' => $this->tour->steps[$next_first_step - 1]->css_selector,