Then maybe this file poll_manager.php which contains the function was called twice for some reason ^^