Skip to content

Commit

Permalink
MDL-24321 switching to stdClass in /notes/
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Sep 21, 2010
1 parent 8e803c3 commit 6d63fb5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion notes/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
$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;
Expand Down
2 changes: 1 addition & 1 deletion notes/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 6d63fb5

Please sign in to comment.