Zeile 508 | Zeile 508 |
---|
{ global $db, $mybb; static $pm_lastvisit_cache;
|
{ global $db, $mybb; static $pm_lastvisit_cache;
|
| $uid = intval($uid);
|
// If no user id, assume that we mean the current logged in user.
|
// If no user id, assume that we mean the current logged in user.
|
if(intval($uid) == 0)
| if($uid == 0)
|
{ $uid = $mybb->user['uid']; }
| { $uid = $mybb->user['uid']; }
|
Zeile 525 | Zeile 527 |
---|
{ if(!$pm_lastvisit_cache[$uid]) {
|
{ if(!$pm_lastvisit_cache[$uid]) {
|
$query = $db->query("SELECT lastvisit FROM ".TABLE_PREFIX."users WHERE uid='".intval($uid)."'");
| $query = $db->query("SELECT lastvisit FROM ".TABLE_PREFIX."users WHERE uid='".$uid."'");
|
$user = $db->fetch_array($query); $pm_lastvisit_cache[$uid] = $user['lastvisit']; }
| $user = $db->fetch_array($query); $pm_lastvisit_cache[$uid] = $user['lastvisit']; }
|
Zeile 554 | Zeile 556 |
---|
} if(is_array($pmcount)) {
|
} if(is_array($pmcount)) {
|
$db->update_query(TABLE_PREFIX."users", $pmcount, "uid='".intval($uid)."'");
| $db->update_query(TABLE_PREFIX."users", $pmcount, "uid='".$uid."'");
|
} return $pmcount; }
| } return $pmcount; }
|