aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/course/wizard.php
diff options
context:
space:
mode:
authorPhilipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de>2022-05-11 09:52:41 +0000
committerDavid Siegfried <david.siegfried@uni-vechta.de>2022-05-11 09:52:41 +0000
commitbde0ce9568bb4cc806e5d84b344ead0ccb262913 (patch)
treecfad8f758199acc63318dbaa5aab18d740856ab3 /app/controllers/course/wizard.php
parentef16ca3d78625ac6d25527c1af5bfe3eeb9d8906 (diff)
CourseWizard: better error message on nodata failure, fixes #981
Closes #981 Merge request studip/studip!71
Diffstat (limited to 'app/controllers/course/wizard.php')
-rw-r--r--app/controllers/course/wizard.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/course/wizard.php b/app/controllers/course/wizard.php
index c9873dd..c8da5b1 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']);