MDL-26594 renamed named param causing oracle reserved word error. - thanks to Luca...
authorAparup Banerjee <aparup@moodle.com>
Wed, 9 Mar 2011 09:04:09 +0000 (17:04 +0800)
committerAparup Banerjee <aparup@moodle.com>
Wed, 9 Mar 2011 09:04:09 +0000 (17:04 +0800)
lib/completionlib.php

index 2dcf40f..a747101 100644 (file)
@@ -989,10 +989,10 @@ class completion_info {
 
         $sql  = "SELECT u.id ";
         $sql .= $tracked->sql;
-        $sql .= ' AND u.id = :user';
+        $sql .= ' AND u.id = :userid';
 
         $params = $tracked->data;
-        $params['user'] = (int)$userid;
+        $params['userid'] = (int)$userid;
         return $DB->record_exists_sql($sql, $params);
     }