Skip to content
Snippets Groups Projects
Commit 75e17e60 authored by anoack's avatar anoack Committed by Moritz Strohm
Browse files

fix Call to a member function getStartWeeks() on null

parent 2614eef6
No related branches found
No related tags found
No related merge requests found
pluginname=CourseCopy pluginname=CourseCopy
pluginclassname=CourseCopy pluginclassname=CourseCopy
version=1.9.4 version=1.9.5
origin=data-quest origin=data-quest
studipMinVersion=4.0 studipMinVersion=4.0
studipMaxVersion=5.3.99 studipMaxVersion=5.3.99
<?php <?php
if ($semester) {
$start_weeks = $semester->getStartWeeks(); $start_weeks = $semester->getStartWeeks();
$last_week = count($start_weeks) - 1; $last_week = count($start_weeks) - 1;
?> ?>
...@@ -29,3 +30,5 @@ $last_week = count($start_weeks) - 1; ...@@ -29,3 +30,5 @@ $last_week = count($start_weeks) - 1;
<? endforeach ?> <? endforeach ?>
</select> </select>
</label> </label>
<?php
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment