Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
192dcd04
Commit
192dcd04
authored
Aug 10, 2005
by
Dries Buytaert
Browse files
- Patch
#18778
by Gerhard/Olen: sort users by creation date rather than user ID.
parent
8c92c8d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/user.module
View file @
192dcd04
...
...
@@ -550,7 +550,7 @@ function user_block($op = 'list', $delta = 0, $edit = array()) {
case
2
:
if
(
user_access
(
'access content'
))
{
$result
=
db_query_range
(
'SELECT uid, name FROM {users} WHERE status != 0 ORDER BY
ui
d DESC'
,
0
,
5
);
$result
=
db_query_range
(
'SELECT uid, name FROM {users} WHERE status != 0 ORDER BY
create
d DESC'
,
0
,
5
);
while
(
$account
=
db_fetch_object
(
$result
))
{
$items
[]
=
$account
;
}
...
...
modules/user/user.module
View file @
192dcd04
...
...
@@ -550,7 +550,7 @@ function user_block($op = 'list', $delta = 0, $edit = array()) {
case
2
:
if
(
user_access
(
'access content'
))
{
$result
=
db_query_range
(
'SELECT uid, name FROM {users} WHERE status != 0 ORDER BY
ui
d DESC'
,
0
,
5
);
$result
=
db_query_range
(
'SELECT uid, name FROM {users} WHERE status != 0 ORDER BY
create
d DESC'
,
0
,
5
);
while
(
$account
=
db_fetch_object
(
$result
))
{
$items
[]
=
$account
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment