Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Some fixes.

  • Loading branch information...
commit a9ff839bee73feb6dc0e68e12a854ac808b9a85a 1 parent 5dcd254
ethem authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 enrol/authorize/enrol.php
View
4 enrol/authorize/enrol.php
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.