summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-06-03 06:17:58 +0000
committerDries Buytaert <dries@buytaert.net>2007-06-03 06:17:58 +0000
commit712c5758ff9685d9d8a07cbbe91aa814ca32f0a9 (patch)
tree69d12b044b9879987e98b7c58a87f0e210c52f66
parent3f7364b9143d97c252b1a4a89ce958cc012479fb (diff)
downloadbrdo-712c5758ff9685d9d8a07cbbe91aa814ca32f0a9.tar.gz
brdo-712c5758ff9685d9d8a07cbbe91aa814ca32f0a9.tar.bz2
- Patch #148744 by catch: fixed some code comments.
-rw-r--r--modules/user/user.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/user/user.module b/modules/user/user.module
index e858d2de1..72bbb1e34 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -616,11 +616,11 @@ 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.
+ // Count users active within the defined period.
$interval = time() - variable_get('user_block_seconds_online', 900);
// Perform database queries to gather online user lists. We use s.timestamp
- // rather than u.access because it is much faster is much faster..
+ // rather than u.access because it is much faster.
$anonymous_count = sess_count($interval);
$authenticated_users = db_query('SELECT DISTINCT u.uid, u.name FROM {users} u INNER JOIN {sessions} s ON u.uid = s.uid WHERE s.timestamp >= %d AND s.uid > 0 ORDER BY s.timestamp DESC', $interval);
$authenticated_count = db_num_rows($authenticated_users);