diff --git a/notes/edit.php b/notes/edit.php
index <HASH>..<HASH> 100644
--- a/notes/edit.php
+++ b/notes/edit.php
@@ -22,7 +22,7 @@ if ($noteid) {
     $userid   = required_param('userid', PARAM_INT);
     $state    = optional_param('publishstate', NOTES_STATE_PUBLIC, PARAM_ALPHA);
 
-    $note = new object();
+    $note = new stdClass();
     $note->courseid     = $courseid;
     $note->userid       = $userid;
     $note->publishstate = $state;
diff --git a/notes/lib.php b/notes/lib.php
index <HASH>..<HASH> 100644
--- a/notes/lib.php
+++ b/notes/lib.php
@@ -173,7 +173,7 @@ function note_print($note, $detail = NOTES_SHOW_FULL) {
     $context = get_context_instance(CONTEXT_COURSE, $note->courseid);
     $systemcontext = get_context_instance(CONTEXT_SYSTEM);
 
-    $authoring = new object();
+    $authoring = new stdClass();
     $authoring->name = '<a href="'.$CFG->wwwroot.'/user/view.php?id='.$author->id.'&amp;course='.$note->courseid.'">'.fullname($author).'</a>';
     $authoring->date = userdate($note->lastmodified);
MDL-<I> switching to stdClass in /notes/