MDL-11762 - Navigation not set up properly for resources - $this->navlinks was not being initialised in the base class. Merged from MOODLE_19_STABLE.

This commit is contained in:
tjhunt 2007-10-15 07:32:15 +00:00
parent 634d20d380
commit bddd9f6f40

View File

@ -95,6 +95,7 @@ class resource_base {
function resource_base($cmid=0) {
global $CFG, $COURSE;
$this->navlinks = array();
if ($cmid) {
if (! $this->cm = get_coursemodule_from_id('resource', $cmid)) {