diff --git a/app/Services/Cloudflare/AuditLogService.php b/app/Services/Cloudflare/AuditLogService.php index bcfc5f7..c1066c2 100644 --- a/app/Services/Cloudflare/AuditLogService.php +++ b/app/Services/Cloudflare/AuditLogService.php @@ -83,7 +83,7 @@ class AuditLogService extends CloudflareService $response = $this->getMySocket()->get($endpoint); $body = json_decode($response->getBody()); foreach ($body->result as $result) { - if (isset($result->action->result) && $result->action->result && isset($result->newValueJson->zone_id)) { + if (isset($result->action->result) && $result->action->result && isset($result->newValueJson->zone_id) && isset($result->newValueJson->zone_name)) { // log_message("debug", var_export($result->newValueJson, true)); $entity = $this->getModel()->getEntityByPK($result->id); if ($entity === null) {