]> git.mjollnir.org Git - moodle.git/commitdiff
webservice MDL-20805 remove the ORDER BY text (not cross-db)
authorjerome mouneyrac <jerome@moodle.com>
Wed, 13 Jan 2010 11:01:06 +0000 (11:01 +0000)
committerjerome mouneyrac <jerome@moodle.com>
Wed, 13 Jan 2010 11:01:06 +0000 (11:01 +0000)
admin/webservice/forms.php

index e763b3e07da781fb7ce5800ed956ccd1eb4851fc..12795a1c68f176a64ee9bb3767fc1eb81081603d 100644 (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) {