Alles nochmal auf Null.
Finde:
Code: Alles auswählen
$sql = "SELECT *
FROM " . RANKS_TABLE . "
ORDER BY rank_special, rank_min";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain ranks information', '', __LINE__, __FILE__, $sql);
}
Code: Alles auswählen
//
// User banned?
//
$sql = "SELECT * FROM " . BANLIST_TABLE . "
WHERE ban_userid = '" . intval($profiledata['user_id']) . "'";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain ranks information', '', __LINE__, __FILE__, $sql);
}
else if ($row = $db->sql_fetchrow($result))
{
message_die(GENERAL_ERROR, 'User gebannt');
}
Mein Fehler.
