This commit is contained in:
ethem
2005-05-26 11:22:30 +00:00
parent e41e727022
commit aabfe78ed5
+1 -3
View File
@@ -79,12 +79,10 @@ function print_entry($course) {
/// Override: check_entry()
function check_entry($form, $course) {
global $CFG;
if ($this->zero_cost($course)) {
if (!empty($CFG->enrol_allowinternal)) {
parent::check_entry($form, $course);
} else {
print_header();
notice(get_string("enrolmentnointernal"), $CFG->wwwroot);
}
} else {
$this->cc_submit($form, $course);