Quote:
Originally Posted by rjordan
Can you post the lines from just before the fix as applied to a few lines after?
|
Is this what you want to see? The fix code is bolded:
if
Code:
($userid==0) {
print_no_permission();
}
$user = $DB_site->query_first("SELECT * FROM " . TABLE_PREFIX . "user WHERE userid=$userid");
if ($user['username']=="") {
$idname = $vbphrase['user'];
eval(print_standard_error('error_invalidid'));
}
$activitycount = $DB_site->query("
SELECT gamesessions.*, games.title FROM " . TABLE_PREFIX . "gamesessions AS gamesessions
LEFT JOIN " . TABLE_PREFIX . "games AS games ON gamesessions.gamename = games.shortname
WHERE userid=$userid AND valid=1 AND $sessionclause GROUP BY sessionid ORDER BY finish DESC");
$played = $DB_site->num_rows($activitycount);
$i = 1;
And thank you so much for helping me with this.