Skip to content
Snippets Groups Projects
Commit ab1d0889 authored by Ron Lucke's avatar Ron Lucke
Browse files

throw exception on empty study_course

parent 82e9df5c
No related branches found
No related tags found
No related merge requests found
......@@ -26,8 +26,14 @@ class WidgetController extends PluginController {
{
CSRFProtection::verifyUnsafeRequest();
$studycourse = Request::option('studycourse');
if ($studycourse == '') {
throw new Exception(_('Es wurde kein Studiengang ausgewählt!'));
}
$preferences = [
'studycourse' => Request::option('studycourse'),
'studycourse' => $studycourse,
'gender' => Request::int('gender'),
'migration' => Request::int('migration'),
'firstgen' => Request::int('firstgen'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment