From 246c206420c9973b42686b6c62e02db49c2b7655 Mon Sep 17 00:00:00 2001 From: defacer Date: Fri, 4 Feb 2005 20:27:54 +0000 Subject: [PATCH] Fix for bug 2492: Notices thrown by pagelib.php. It was an oversight on my part. Thanks Gustav! --- lib/pagelib.php | 2 ++ 1 file changed, 2 insertions(+) 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); } -- 2.39.5