query("UPDATE forums_polls_votes SET Vote = ".$NewVote." WHERE TopicID = ".$ThreadID." AND UserID = ".$LoggedUser['ID']); $Cache->delete_value('polls_'.$ThreadID); header("Location: forums.php?action=viewthread&threadid=".$ThreadID); } else { error(404); }