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'], );