webservice MDL-20805 remove the ORDER BY text (not cross-db)

This commit is contained in:
jerome mouneyrac
2010-01-13 11:01:06 +00:00
parent f692098303
commit 49af1c558b
+1 -2
View File
@@ -146,8 +146,7 @@ class web_service_token_form extends moodleform {
FROM {user} user
WHERE user.id NOT IN ( SELECT adminuser.id
FROM {user} adminuser, {role_assignments} rassign
WHERE rassign.roleid = 1 AND rassign.userid = adminuser.id)
ORDER BY user.lastname";
WHERE rassign.roleid = 1 AND rassign.userid = adminuser.id)";
$users = $DB->get_records_sql($sql,array());
$options = array();
foreach ($users as $userid => $user) {