Permalink
Browse files

Fixing a small bug with quiet visits causing an error in 1.2 and 1.4.

  • Loading branch information...
Ben Fondu
Ben Fondu committed Apr 25, 2009
1 parent f8e6a50 commit c78501e8b4ec275cdbbc0f3ab1992e04993bb229
Showing with 5 additions and 0 deletions.
  1. +5 −0 upload/include/functions.php
@@ -104,6 +104,11 @@ function check_cookie(&$pun_user)
$db->query('UPDATE '.$db->prefix.'online SET logged='.$now.$idle_sql.' WHERE user_id='.$pun_user['id']) or error('Unable to update online list', __FILE__, __LINE__, $db->error());
}
}
else
{
if (!$pun_user['logged'])
$pun_user['logged'] = $pun_user['last_visit'];
}
$pun_user['is_guest'] = false;
}

0 comments on commit c78501e

Please sign in to comment.