Merge branch 'MDL-26594' of git://github.com/nebgor/moodle
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Sun, 13 Mar 2011 23:54:36 +0000 (00:54 +0100)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Sun, 13 Mar 2011 23:54:36 +0000 (00:54 +0100)
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);
     }