]> git.mjollnir.org Git - moodle.git/commitdiff
Added isset($course) test to get rid of notice
authorvyshane <vyshane>
Wed, 5 Apr 2006 07:41:12 +0000 (07:41 +0000)
committervyshane <vyshane>
Wed, 5 Apr 2006 07:41:12 +0000 (07:41 +0000)
course/edit.html

index dd50389e36d1cc7817520f7c74dff6aa0ca1f021..b1a36f24e43f37445ce8ca914dca7db830f144fd 100644 (file)
     </td>
 </tr>
 <?php
-    if (method_exists(enrolment_factory::factory($course->enrol), 'print_entry') && $course->enrol != 'manual') {
+    if (isset($course) && method_exists(enrolment_factory::factory($course->enrol), 'print_entry') && $course->enrol != 'manual') {
 ?>
 <tr valign="top">
     <td align="right"><?php  print_string("cost") ?>:</td>