diff --git a/app/controllers/course/wizard.php b/app/controllers/course/wizard.php index c9873dde02240a8590790dbf26d0fa459c176e4e..c8da5b1ce3e2a6fdfe1e17f54888ea9ce9f98971 100644 --- a/app/controllers/course/wizard.php +++ b/app/controllers/course/wizard.php @@ -244,7 +244,8 @@ class Course_WizardController extends AuthenticatedController $this->stepnumber = $stepnumber; $this->temp_id = $temp_id; if (!$this->getValues()) { - throw new UnexpectedValueException('no data found'); + PageLayout::postError(_('Ihre Session ist abgelaufen, bitte erneut anfangen.')); + $this->redirect('course/wizard'); } if (isset($_SESSION['coursewizard'][$this->temp_id]['source_id'])) { $this->source_course = Course::find($_SESSION['coursewizard'][$this->temp_id]['source_id']);