From: defacer Date: Fri, 4 Feb 2005 20:27:54 +0000 (+0000) Subject: Fix for bug 2492: Notices thrown by pagelib.php. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=246c206420c9973b42686b6c62e02db49c2b7655;p=moodle.git Fix for bug 2492: Notices thrown by pagelib.php. It was an oversight on my part. Thanks Gustav! --- diff --git a/lib/pagelib.php b/lib/pagelib.php index c82df81754..bbdff81651 100644 --- a/lib/pagelib.php +++ b/lib/pagelib.php @@ -545,12 +545,14 @@ class page_quiz extends page_base { // When is a user said to have "editing rights" in this page? This would have something // to do with roles, in the future. function user_allowed_editing() { + $this->init_full(); return isteacheredit($this->modulerecord->course); } // Is the user actually editing this page right now? This would have something // to do with roles, in the future. function user_is_editing() { + $this->init_full(); return isediting($this->modulerecord->course); }