Closed (won't fix)
Project:
Drupal core
Version:
5.x-dev
Component:
documentation
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Sep 2009 at 15:47 UTC
Updated:
4 Jan 2011 at 17:02 UTC
http://api.drupal.org/api/function/sess_count/5 => this documentation should be remove.
"Any other value will return the count of both authenticated and anonymous users." => this sentence is not handled anymore by the current version of the function code.
function sess_count($timestamp = 0, $anonymous = true) {
$query = $anonymous ? ' AND uid = 0' : ' AND uid > 0';
return db_result(db_query('SELECT COUNT(sid) AS count FROM {sessions} WHERE timestamp >= %d'. $query, $timestamp));
}
Comments
Comment #1
jhodgdon7.0 is out tomorrow, 5.x is obsolete, won't fix, sorry.