From ea056b93fa30c7cde7f722a8ef111382d11ef544 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 17 Jul 2021 20:27:18 +0000 Subject: [PATCH] Fix notice in events --- src/Model/Item.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Model/Item.php b/src/Model/Item.php index b258e86470..33bd861cc7 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -1033,9 +1033,9 @@ class Item $ev['guid'] = $item['guid']; $ev['plink'] = $item['plink']; $ev['network'] = $item['network']; - $ev['protocol'] = $item['protocol']; - $ev['direction'] = $item['direction']; - $ev['source'] = $item['source']; + $ev['protocol'] = $item['protocol'] ?? Conversation::PARCEL_UNKNOWN; + $ev['direction'] = $item['direction'] ?? Conversation::UNKNOWN; + $ev['source'] = $item['source'] ?? ''; $event = DBA::selectFirst('event', ['id'], ['uri' => $item['uri'], 'uid' => $item['uid']]); if (DBA::isResult($event)) {