]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-11762 - Navigation not set up properly for resources - $this->navlinks was not...
authortjhunt <tjhunt>
Mon, 15 Oct 2007 07:32:15 +0000 (07:32 +0000)
committertjhunt <tjhunt>
Mon, 15 Oct 2007 07:32:15 +0000 (07:32 +0000)
mod/resource/lib.php

index c6ae028234f6daca797aa5efe0266e56f685bb08..9b0187e32acb5c15d01682ee6d3aeecb004f0f97 100644 (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)) {