Skip to content
Browse files

MDL-28436 webservice : fixed missing field in query

  • Loading branch information...
1 parent 6731a04 commit f6f2bebd0c24b4ef46574c8e002d48bfcadf2791 @nebgor nebgor committed Oct 10, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/adminlib.php
2 lib/adminlib.php
@@ -7517,7 +7517,7 @@ public function output_html($data, $query='') {
//TODO: in order to let the administrator delete obsolete token, split this request in multiple request or use LEFT JOIN
//here retrieve token list (including linked users firstname/lastname and linked services name)
- $sql = "SELECT, t.token, AS userid, u.firstname, u.lastname,, t.validuntil, AS serviceid
+ $sql = "SELECT, t.token, AS userid, u.firstname, u.lastname,, t.iprestriction, t.validuntil, AS serviceid
FROM {external_tokens} t, {user} u, {external_services} s
WHERE t.creatorid=? AND t.tokentype = ? AND = t.externalserviceid AND t.userid =";
$tokens = $DB->get_records_sql($sql, array($USER->id, EXTERNAL_TOKEN_PERMANENT));

0 comments on commit f6f2beb

Please sign in to comment.
Something went wrong with that request. Please try again.