Update class.php

Added exit; to redirect($redirect_url) function incase you don't want to render the page.