Skip to content
Snippets Groups Projects
Commit 33a378b9 authored by Elmar Ludwig's avatar Elmar Ludwig
Browse files

fix "UnexpectedValueException: Invalid context"

parent 6c0a71b3
Branches master
No related tags found
No related merge requests found
......@@ -26,7 +26,9 @@ class AvailSchedule extends StudipPlugin implements SystemPlugin
{
parent::__construct();
$sem_type = Context::getArtNum();
if (Context::getId()) {
$sem_type = Context::getArtNum();
}
if (isset($sem_type) && !$GLOBALS['SEM_CLASS'][$GLOBALS['SEM_TYPE'][$sem_type]['class']]['studygroup_mode'] &&
Navigation::hasItem('/course/members') && $GLOBALS['perm']->have_studip_perm('tutor', Context::getId())) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment