MDL-24278 fixed regression that surfaced after my recent fix
authorPetr Skoda <skodak@moodle.org>
Sun, 19 Sep 2010 13:30:05 +0000 (13:30 +0000)
committerPetr Skoda <skodak@moodle.org>
Sun, 19 Sep 2010 13:30:05 +0000 (13:30 +0000)
lib/accesslib.php

index e233008..b86c125 100755 (executable)
@@ -739,7 +739,7 @@ function has_coursecontact_role($userid) {
     $sql = "SELECT 1
               FROM {role_assignments}
              WHERE userid = :userid AND roleid IN ($CFG->coursecontact)";
-    return $DB->record_exists($sql, array('userid'=>$userid));
+    return $DB->record_exists_sql($sql, array('userid'=>$userid));
 }
 
 /**