From: vyshane Date: Wed, 5 Apr 2006 07:41:12 +0000 (+0000) Subject: Added isset($course) test to get rid of notice X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=a1b85c9ba50949f78748ed0c42bb01acf92bfe43;p=moodle.git Added isset($course) test to get rid of notice --- diff --git a/course/edit.html b/course/edit.html index dd50389e36..b1a36f24e4 100644 --- a/course/edit.html +++ b/course/edit.html @@ -271,7 +271,7 @@ enrol), 'print_entry') && $course->enrol != 'manual') { + if (isset($course) && method_exists(enrolment_factory::factory($course->enrol), 'print_entry') && $course->enrol != 'manual') { ?> :