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