From 27965f89e3ed23bd0f6336fd8872e32903c38823 Mon Sep 17 00:00:00 2001 From: Moritz Strohm <strohm@data-quest.de> Date: Wed, 10 Apr 2024 16:49:36 +0200 Subject: [PATCH] fixed compatibility problem with PHP 8 --- controllers/copy.php | 2 +- plugin.manifest | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/controllers/copy.php b/controllers/copy.php index b05e73e..fdcf91e 100755 --- a/controllers/copy.php +++ b/controllers/copy.php @@ -19,7 +19,7 @@ class CopyController extends PluginController $this->semesters = array_reverse(Semester::getAll()); $this->semester = 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')) { $this->have_coursegroups = true; } diff --git a/plugin.manifest b/plugin.manifest index c1093d7..0feb8f1 100755 --- a/plugin.manifest +++ b/plugin.manifest @@ -1,6 +1,6 @@ pluginname=CourseCopy pluginclassname=CourseCopy -version=1.9.6 +version=1.9.7 origin=data-quest -studipMinVersion=4.0 -studipMaxVersion=5.4.99 +studipMinVersion=5.0 +studipMaxVersion=5.9.99 -- GitLab