From 86b33e74913ec3653808f7de0b94e547627fb6be Mon Sep 17 00:00:00 2001 From: Bob Olde Hampsink Date: Mon, 31 Oct 2016 09:11:45 +0100 Subject: [PATCH] Fix the viewer, too --- services/AuditLogService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/AuditLogService.php b/services/AuditLogService.php index 153b0bb..6c9dcd9 100644 --- a/services/AuditLogService.php +++ b/services/AuditLogService.php @@ -54,7 +54,7 @@ public function view($id) // Set parsed values $diff[$handle] = array( 'label' => $item['label'], - 'changed' => ($item['value'] != $log['before'][$handle]['value']), + 'changed' => !isset($log['before'][$handle]) || ($item['value'] != $log['before'][$handle]['value']), 'after' => $item['value'], 'before' => $log['before'][$handle]['value'], );