Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
After importing and merging several drupal installastions, i came across this "bug".
Nothing important, but I think it's better to sort the users after "created" than "uid" when getting the latest aditions.
--- user.module.orig 2005-03-12 11:48:54.485881868 +0100
+++ user.module 2005-03-12 11:49:06.146192209 +0100
@@ -526,7 +526,7 @@
case 2:
if (user_access('access content')) {
- $result = db_query_range('SELECT uid, name FROM {users} WHERE status != 0 ORDER BY uid DESC', 0, 5);
+ $result = db_query_range('SELECT uid, name FROM {users} WHERE status != 0 ORDER BY created DESC', 0, 5);
while ($account = db_fetch_object($result)) {
$items[] = format_name($account);
}
Comment | File | Size | Author |
---|---|---|---|
#1 | usersort.patch | 767 bytes | killes@www.drop.org |
Comments
Comment #1
killes@www.drop.org CreditAttribution: killes@www.drop.org commentedRight.
Comment #2
Dries CreditAttribution: Dries commentedCommitted to HEAD. Thanks.
Comment #3
(not verified) CreditAttribution: commentedComment #4
(not verified) CreditAttribution: commentedComment #5
(not verified) CreditAttribution: commentedComment #6
(not verified) CreditAttribution: commentedComment #7
(not verified) CreditAttribution: commented