]> git.mjollnir.org Git - moodle.git/commitdiff
Fix typo.
authortjhunt <tjhunt>
Fri, 15 Sep 2006 13:18:28 +0000 (13:18 +0000)
committertjhunt <tjhunt>
Fri, 15 Sep 2006 13:18:28 +0000 (13:18 +0000)
lib/accesslib.php

index d9b6421440b2d3d22d62c8a255953e343d12707a..25fc00874d7565a570f0f64a87741acaf5bb4d7c 100755 (executable)
@@ -2315,7 +2315,7 @@ function get_users_by_capability($context, $capability, $fields='u.*, ul.timeacc
     }
     
     /// if context is a course, then constrct sql for ul
-    if ($context->aggregatelevel == COURSE_CONTEXT) {
+    if ($context->aggregatelevel == CONTEXT_COURSE) {
         $courseid = $context->instanceid;
         $coursesql = "AND (ul.courseid = $courseid OR ISNULL(ul.courseid)";
     }