Skip to content
Snippets Groups Projects
Commit 27965f89 authored by Moritz Strohm's avatar Moritz Strohm
Browse files

fixed compatibility problem with PHP 8

parent 715f13cf
No related branches found
No related tags found
No related merge requests found
...@@ -19,7 +19,7 @@ class CopyController extends PluginController ...@@ -19,7 +19,7 @@ class CopyController extends PluginController
$this->semesters = array_reverse(Semester::getAll()); $this->semesters = array_reverse(Semester::getAll());
$this->semester = UserConfig::get($GLOBALS['user']->id)->COURSECOPY_SETTINGS_SEMESTER_ID $this->semester = UserConfig::get($GLOBALS['user']->id)->COURSECOPY_SETTINGS_SEMESTER_ID
? Semester::find(UserConfig::get($GLOBALS['user']->id)->COURSECOPY_SETTINGS_SEMESTER_ID) ? Semester::find(UserConfig::get($GLOBALS['user']->id)->COURSECOPY_SETTINGS_SEMESTER_ID)
: $this->semesters[0]; : $this->semesters[0] ?? null;
if (Seminar_Perm::get()->have_perm('admin')) { if (Seminar_Perm::get()->have_perm('admin')) {
$this->have_coursegroups = true; $this->have_coursegroups = true;
} }
......
pluginname=CourseCopy pluginname=CourseCopy
pluginclassname=CourseCopy pluginclassname=CourseCopy
version=1.9.6 version=1.9.7
origin=data-quest origin=data-quest
studipMinVersion=4.0 studipMinVersion=5.0
studipMaxVersion=5.4.99 studipMaxVersion=5.9.99
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment