chad777
09-08-2002, 05:20 AM
Fatal error: Call to a member function on a non-object in /home/public_html/forums/online.php on line 128
Any Ideas ?
Actually I have found out exactly when it does this.
If a member is viewing a profile anyone else trying to see "who's Online" gets that error any idea what could be wrong here is
lines 126-134 of online.php
case 'getinfo':
$userid = explode('userid=', $userinfo[location]);
$user = $DB_site->query_first("SELECT username FROM user WHERE userid = ".intval($userid[1]));
if ($user[username]) {
$userinfo[where] = "Viewing Profile of <a href=\"member.php?s=$session[sessionhash]&action=getinfo&userid=$user[userid]\">$user[username]</a>";
} else {
$userinfo[where] = "Viewing Profile of a Forum Member";
}
break;
Any Ideas ?
Actually I have found out exactly when it does this.
If a member is viewing a profile anyone else trying to see "who's Online" gets that error any idea what could be wrong here is
lines 126-134 of online.php
case 'getinfo':
$userid = explode('userid=', $userinfo[location]);
$user = $DB_site->query_first("SELECT username FROM user WHERE userid = ".intval($userid[1]));
if ($user[username]) {
$userinfo[where] = "Viewing Profile of <a href=\"member.php?s=$session[sessionhash]&action=getinfo&userid=$user[userid]\">$user[username]</a>";
} else {
$userinfo[where] = "Viewing Profile of a Forum Member";
}
break;