diff --git a/course/edit.html b/course/edit.html
index c52a4df67c7..12815006429 100644
--- a/course/edit.html
+++ b/course/edit.html
@@ -130,7 +130,7 @@
enrol != internal) {
+ if ($CFG->enrol != 'internal') {
?>
: |
diff --git a/course/edit.php b/course/edit.php
index b33445ad3c3..4a8b2cc4ddf 100644
--- a/course/edit.php
+++ b/course/edit.php
@@ -3,7 +3,7 @@
require_once("../config.php");
require_once("lib.php");
- require_once("$CFG->libdir/blocklib.php");
+ require_once("$CFG->libdir/blocklib.php");
optional_variable($id, 0); // course id
optional_variable($category, 0); // category id
@@ -124,6 +124,8 @@
$form->password = "";
$form->guest = 0;
$form->numsections = 10;
+ $form->idnumber = '';
+ $form->cost = '';
$form->newsitems = 5;
$form->showgrades = 1;
$form->groupmode = 0;