Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
0f7ed2a5
Commit
0f7ed2a5
authored
May 04, 2006
by
Dries
Browse files
- Patch
#59346
by DriesK: incorrect defailt "who's online block" setting.
parent
2bcdd6b1
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/user.module
View file @
0f7ed2a5
...
...
@@ -582,7 +582,7 @@ function user_block($op = 'list', $delta = 0, $edit = array()) {
case
3
:
if
(
user_access
(
'access content'
))
{
// Count users with activity in the past defined period.
$time_period
=
variable_get
(
'user_block_seconds_online'
,
27
00
);
$time_period
=
variable_get
(
'user_block_seconds_online'
,
9
00
);
// Perform database queries to gather online user lists.
$guests
=
db_fetch_object
(
db_query
(
'SELECT COUNT(sid) AS count FROM {sessions} WHERE timestamp >= %d AND uid = 0'
,
time
()
-
$time_period
));
...
...
modules/user/user.module
View file @
0f7ed2a5
...
...
@@ -582,7 +582,7 @@ function user_block($op = 'list', $delta = 0, $edit = array()) {
case
3
:
if
(
user_access
(
'access content'
))
{
// Count users with activity in the past defined period.
$time_period
=
variable_get
(
'user_block_seconds_online'
,
27
00
);
$time_period
=
variable_get
(
'user_block_seconds_online'
,
9
00
);
// Perform database queries to gather online user lists.
$guests
=
db_fetch_object
(
db_query
(
'SELECT COUNT(sid) AS count FROM {sessions} WHERE timestamp >= %d AND uid = 0'
,
time
()
-
$time_period
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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