diff --git a/plugin.manifest b/plugin.manifest index 024778581085fac7ae1cdbf86829faa062d5c42c..e2280727ab352b2e24dbe5e173795b75c54391e4 100755 --- a/plugin.manifest +++ b/plugin.manifest @@ -1,6 +1,6 @@ pluginname=CourseCopy pluginclassname=CourseCopy -version=1.9.4 +version=1.9.5 origin=data-quest studipMinVersion=4.0 studipMaxVersion=5.3.99 diff --git a/views/copy/semester_start_und_ende.php b/views/copy/semester_start_und_ende.php index 22a78a73ceb3e107776e830fd36b651c2592483c..f2a4a729ee3d7f810e23e003ff8ae521efee6017 100755 --- a/views/copy/semester_start_und_ende.php +++ b/views/copy/semester_start_und_ende.php @@ -1,6 +1,7 @@ <?php -$start_weeks = $semester->getStartWeeks(); -$last_week = count($start_weeks) - 1; +if ($semester) { + $start_weeks = $semester->getStartWeeks(); + $last_week = count($start_weeks) - 1; ?> <label> <?= _("Startwoche") ?> @@ -29,3 +30,5 @@ $last_week = count($start_weeks) - 1; <? endforeach ?> </select> </label> +<?php +}