From 2d4eb3e6c27c7da9f0f094afe852cd1ffb3d6fae Mon Sep 17 00:00:00 2001 From: Peter Rotich <peter@enhancesoft.com> Date: Thu, 22 Mar 2018 11:29:43 +0000 Subject: [PATCH] Notes: Ghost Poster Account for the possibility of agents being deleted --- include/staff/templates/note.tmpl.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/staff/templates/note.tmpl.php b/include/staff/templates/note.tmpl.php index f36f1d81a..4ceae8f1b 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> -- GitLab