Has anyone else noticed that upgrading to 2.2.9 breaks the Who's Online for Viewing (this members) Profile ?
EDIT: // as in it was working fine afaik before the upgrade but now I seem to have the following error whenever I try to view a Profile and then look @ Who's Online ...
Code:
Fatal error: Call to a member function on a non-object in /my/home/directory/forums/online.php on line 122
Line 122 is from this hack and comprises
PHP Code:
case 'getinfo':
$userid = explode('userid=', $userinfo[location]);
/*122 */ $user = $DB_site->query_first("SELECT userid, username FROM user WHERE userid = ".intval($userid[1]));
if ($user[username] && $user[userid]) {
$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 what's wrong ?
//EDIT: Apart from me not reading thru the thread properly LOL

Sorry!
Great hack and thanks