Update class.php

Added noerrors function