]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed detection of no groups as per bug 1692 - thanks, Ray!
authormoodler <moodler>
Wed, 4 Aug 2004 12:32:43 +0000 (12:32 +0000)
committermoodler <moodler>
Wed, 4 Aug 2004 12:32:43 +0000 (12:32 +0000)
lib/moodlelib.php

index 270aceffdbc012fb3386846218ecd53f21da5856..c33710c4933ef6fc9f4cae2cc7f99f04ecda771f 100644 (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 {