Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
221
Merge Requests
221
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
0f7ed2a5
Commit
0f7ed2a5
authored
May 04, 2006
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#59346
by DriesK: incorrect defailt "who's online block" setting.
parent
2bcdd6b1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
modules/user.module
modules/user.module
+1
-1
modules/user/user.module
modules/user/user.module
+1
-1
No files found.
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