From 4e5a0168f89774872de528e4489cae1c1e820e21 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Fri, 15 Sep 2006 13:18:28 +0000 Subject: [PATCH] Fix typo. --- lib/accesslib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/accesslib.php b/lib/accesslib.php index d9b6421440..25fc00874d 100755 --- a/lib/accesslib.php +++ b/lib/accesslib.php @@ -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)"; } -- 2.39.5