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
8b5175a9
Commit
8b5175a9
authored
Jan 17, 2006
by
Dries Buytaert
Browse files
- Patch
#44754
by Zen: fixed "Who's new" block inaccuracy.
parent
67fc0913
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/user.module
View file @
8b5175a9
...
...
@@ -546,7 +546,8 @@ 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 created DESC'
,
0
,
5
);
//Retrieve a list of new users who have subsequently accessed the site successfully.
$result
=
db_query_range
(
'SELECT uid, name FROM {users} WHERE status != 0 AND access != 0 ORDER BY created DESC'
,
0
,
5
);
while
(
$account
=
db_fetch_object
(
$result
))
{
$items
[]
=
$account
;
}
...
...
modules/user/user.module
View file @
8b5175a9
...
...
@@ -546,7 +546,8 @@ 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 created DESC'
,
0
,
5
);
//Retrieve a list of new users who have subsequently accessed the site successfully.
$result
=
db_query_range
(
'SELECT uid, name FROM {users} WHERE status != 0 AND access != 0 ORDER BY created 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