Skip to content

Commit

Permalink
webservice MDL-20805 fix token table display in the user profil
Browse files Browse the repository at this point in the history
  • Loading branch information
mouneyrac committed Jan 14, 2010
1 parent 1768ae5 commit 4387eea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user/managetoken.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
FROM
{external_tokens} t, {user} u, {external_services} s
WHERE
t.creatorid=? AND t.tokentype = 2 AND s.id = t.externalserviceid AND t.userid = u.id";
t.creatorid=? AND t.tokentype = ".EXTERNAL_TOKEN_PERMANENT." AND s.id = t.externalserviceid AND t.userid = u.id";
$tokens = $DB->get_records_sql($sql, array( $USER->id));
if (!empty($tokens)) {
foreach ($tokens as $token) {
Expand Down

0 comments on commit 4387eea

Please sign in to comment.