From f7bab9f150026dcf5967247212787ed35b5e7c57 Mon Sep 17 00:00:00 2001 From: Bob Olde Hampsink Date: Mon, 31 Oct 2016 09:12:48 +0100 Subject: [PATCH] More viewer fixes --- services/AuditLogService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/AuditLogService.php b/services/AuditLogService.php index 6c9dcd9..771344f 100644 --- a/services/AuditLogService.php +++ b/services/AuditLogService.php @@ -56,7 +56,7 @@ public function view($id) 'label' => $item['label'], 'changed' => !isset($log['before'][$handle]) || ($item['value'] != $log['before'][$handle]['value']), 'after' => $item['value'], - 'before' => $log['before'][$handle]['value'], + 'before' => isset($log['before'][$handle]) ? $log['before'][$handle]['value'] : '', ); }