Added isset($course) test to get rid of notice

This commit is contained in:
vyshane
2006-04-05 07:41:12 +00:00
parent 20d6d84d43
commit a1b85c9ba5
+1 -1
View File
@@ -271,7 +271,7 @@
</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>