diff --git a/include/staff/templates/note.tmpl.php b/include/staff/templates/note.tmpl.php index f36f1d81a38fdb3ff33861d4fe22f54953bdf10a..4ceae8f1bd7d68655cdef2b451691fb45e60a701 100644 --- a/include/staff/templates/note.tmpl.php +++ b/include/staff/templates/note.tmpl.php @@ -7,7 +7,8 @@ </div> <div class="header-right"> <?php - echo $note->getStaff()->getName(); +$staff = $note->getStaff(); +echo $staff ? $staff->getName() : _('Staff'); if (isset($show_options) && $show_options) { ?> <div class="options no-pjax"> <a href="#" class="action edit-note" title="edit"><i class="icon-pencil"></i></a>