Fixed detection of no groups as per bug 1692 - thanks, Ray!
This commit is contained in:
+1
-1
@@ -1280,7 +1280,7 @@ function set_current_group($courseid, $groupid) {
|
||||
function get_current_group($courseid, $full=false) {
|
||||
global $SESSION, $USER;
|
||||
|
||||
if (empty($SESSION->currentgroup[$courseid])) {
|
||||
if (!isset($SESSION->currentgroup[$courseid])) {
|
||||
if (empty($USER->groupmember[$courseid])) {
|
||||
return 0;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user