You should give us the part where $gettotalpoint is given a value.
Also, to have that code not run for guests use:
PHP Code:
if ($numrows_gettotal > '0' || $numrows_gettotal != '0' || $numrows_gettotal != '')
{
if($bbuserinfo['userid'] > 0)
{
list ($newthread, $reply, $view, $admin_mod, $morereply, $totalpenalty,$date, $redeem_points) = mysql_fetch_row($gettotalpoint);
}
}
also, if this is within a function, you will need to add:
PHP Code:
global $bbuserinfo;
just under the starting { of the function.