Added check to make sure cut off date not in past
Merge branch 'master' into MOODLE_26_STABLE