Browse files

MDL-28436 webservice : fixed missing field in query

  • Loading branch information...
1 parent 1e42eed commit 46d1d80388c300690eb95fdfa400b0a732a6bf8d @nebgor nebgor committed with stronk7 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 46d1d80

Please sign in to comment.