Permalink
Browse files

MDL-57362 assign: fix php54 compatability

  • Loading branch information...
danpoltawski committed Mar 6, 2017
1 parent 47dc780 commit 0ce3aa056285ba31f7c6a6a6da3ef073c444c7af
Showing with 2 additions and 1 deletion.
  1. +2 −1 mod/assign/locallib.php
View
@@ -2839,7 +2839,8 @@ public function can_view_grades() {
}
// Checks for the edge case when user belongs to no groups and groupmode is sep.
if ($this->get_course_module()->effectivegroupmode == SEPARATEGROUPS) {
$groupflag = !empty(groups_get_activity_allowed_groups($this->get_course_module()));
$groups = groups_get_activity_allowed_groups($this->get_course_module());
$groupflag = !empty($groups);
return (bool)$groupflag;
}
return true;

0 comments on commit 0ce3aa0

Please sign in to comment.