Merge pull request #10513 from annando/notice

Fix notice in events
This commit is contained in:
Tobias Diekershoff 2021-07-18 08:26:06 +02:00 committed by GitHub
commit 41f6397cc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)) {