fix typo with userid and add check for assign exists when running update_status
use correct settings for late_accept_flag - preventlate != late_accept_flag - they have reversed values. - we should set to 1 when preventlate not a setting (eg new mod_assign) this bug causes 1000 errors to occur
fix old 1000 error codes that were caused by invalid setting of late_accept
more cmid typos
tidy up mainteacher stuff - fix for 212 errors that occur when the mainteacher set has not been added to the course.
typo in delete records call
fix issues with config where assign exists but assignid doesn't - old bug that caused this state.
fix typo