Permalink
Browse files

lib-modinfolib MDL-26264 cm_info and course_modinfo classes both now …

…extend stdClass
  • Loading branch information...
1 parent eef3578 commit 1e4cb1894061bf1d4712da95ad2ce9356bb3889c Sam Hemelryk committed Feb 4, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/modinfolib.php
View
@@ -40,7 +40,7 @@
* 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 @@ public function __construct($course, $userid) {
* 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.
*/

0 comments on commit 1e4cb18

Please sign in to comment.