Updated enrol_self_get_instance_info, forgot to change courseid in the parameters to instanceid, untested.