Fixed detection of no groups as per bug 1692 - thanks, Ray!

This commit is contained in:
moodler
2004-08-04 12:32:43 +00:00
parent 6093cbfcd8
commit ce04df6ba6
+1 -1
View File
@@ -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 {