From bddd9f6f40e96e4852c04c84587c8ea738a944c3 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Mon, 15 Oct 2007 07:32:15 +0000 Subject: [PATCH] MDL-11762 - Navigation not set up properly for resources - $this->navlinks was not being initialised in the base class. Merged from MOODLE_19_STABLE. --- mod/resource/lib.php | 1 + 1 file changed, 1 insertion(+) diff --git a/mod/resource/lib.php b/mod/resource/lib.php index c6ae028234f..9b0187e32ac 100644 --- a/mod/resource/lib.php +++ b/mod/resource/lib.php @@ -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)) {