diff --git a/notes/lib.php b/notes/lib.php index de2752c61678b..a5fc6bc6ee8a0 100644 --- a/notes/lib.php +++ b/notes/lib.php @@ -149,11 +149,21 @@ function note_get_state_names() { function note_print($note, $detail = NOTES_SHOW_FULL) { global $CFG, $USER; - $user = get_record('user','id',$note->userid); + if (!$user = get_record('user','id',$note->userid)) { + debugging("User $note->userid not found"); + return; + } + if (!$author = get_record('user','id',$note->usermodified)) { + debugging("User $note->usermodified not found"); + return; + } $context = get_context_instance(CONTEXT_COURSE, $note->courseid); $sitecontext = get_context_instance(CONTEXT_SYSTEM); - $authoring->name = fullname(get_record('user','id',$note->usermodified)); + + $authoring = new object; + $authoring->name = ''.fullname($author).''; $authoring->date = userdate($note->lastmodified); + echo '
'; diff --git a/theme/standard/styles_layout.css b/theme/standard/styles_layout.css index 27cba75085a41..ace575c760623 100644 --- a/theme/standard/styles_layout.css +++ b/theme/standard/styles_layout.css @@ -2474,7 +2474,6 @@ body#message-send .notifysuccess { } .ownnotepost .info { - font-weight: bolder; } .notepost .header {