Merge branch 'w05_MDL-25743_20_selfenrol' of git://github.com/skodak/moodle
This commit is contained in:
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user