From 1e4cb1894061bf1d4712da95ad2ce9356bb3889c Mon Sep 17 00:00:00 2001 From: Sam Hemelryk Date: Fri, 4 Feb 2011 16:22:57 +0800 Subject: [PATCH] lib-modinfolib MDL-26264 cm_info and course_modinfo classes both now extend stdClass --- lib/modinfolib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/modinfolib.php b/lib/modinfolib.php index 1265d0ec3a9..0d5bf93a381 100644 --- a/lib/modinfolib.php +++ b/lib/modinfolib.php @@ -40,7 +40,7 @@ if (!defined('MAX_MODINFO_CACHE_SIZE')) { * This includes information about the course-modules and the sections on the course. It can also * include dynamic data that has been updated for the current user. */ -class course_modinfo { +class course_modinfo extends stdClass { // For convenience we store the course object here as it is needed in other parts of code private $course; @@ -283,7 +283,7 @@ class course_modinfo { * data only using the supplied set functions. Setting the fields directly is not supported * and may cause problems later. */ -class cm_info { +class cm_info extends stdClass { /** * State: Only basic data from modinfo cache is available. */