Browse files

MDL-26594 renamed named param causing oracle reserved word error. - t…

…hanks to Luca Mazzola
  • Loading branch information...
1 parent 48fe5c6 commit c4a88609fe02fb60e81f742ce8cf6f328dde0879 @nebgor nebgor committed Mar 9, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/completionlib.php
View
4 lib/completionlib.php
@@ -989,10 +989,10 @@ function is_tracked_user($userid) {
$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);
}

0 comments on commit c4a8860

Please sign in to comment.