public static function remove_vote($adv_id) { DAL::removeVote(Cleaning::cleanInt($adv_id), $_SESSION['id']); unset($_SESSION['votes'][array_search($adv_id, $_SESSION['votes'])]); //var_dump($_SESSION['votes']); }