Topic: Redundant check in update_users_online
I just had the double online issue with PunBB. I checked out the update_users_online function and noticed this
// Fetch all online list entries that are older than "o_timeout_online"
$result = $db->query('SELECT * FROM '.$db->prefix.'online WHERE logged<'.($now-$pun_config['o_timeout_online'])) or error('Unable to delete from online list', __FILE__, __LINE__, $db->error());
and then there was this:
if ($cur_user['logged'] < ($now-$pun_config['o_timeout_visit']))
Isn't that true for everything that grabs?