Commit 98d5152d authored by Nigel McNie's avatar Nigel McNie
Browse files

Ignore deleted users in the online users sideblock.

parent a3c602c8
......@@ -1780,7 +1780,7 @@ function profile_sideblock() {
function onlineusers_sideblock() {
global $USER;
$onlineusers = get_records_select_array('usr', 'lastaccess > ?',
$onlineusers = get_records_select_array('usr', 'deleted = 0 AND lastaccess > ?',
array(db_format_timestamp(time() - get_config('accessidletimeout'))), 'lastaccess DESC');
foreach ($onlineusers as &$user) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment