Merge branch 'w05_MDL-25743_20_selfenrol' of git://github.com/skodak/moodle

This commit is contained in:
Sam Hemelryk
2011-01-31 11:52:40 +08:00
+2 -2
View File
@@ -179,12 +179,12 @@ class enrol_self_plugin extends enrol_plugin {
return null;
}
if ($instance->enrolstartdate != 0 and $instance->enrolstartdate < time()) {
if ($instance->enrolstartdate != 0 and $instance->enrolstartdate > time()) {
//TODO: inform that we can not enrol yet
return null;
}
if ($instance->enrolenddate != 0 and $instance->enrolenddate > time()) {
if ($instance->enrolenddate != 0 and $instance->enrolenddate < time()) {
//TODO: inform that enrolment is not possible any more
return null;
}