Update survey.lib.php