Fix notice in events
This commit is contained in:
parent
dd2abf254d
commit
ea056b93fa
|
@ -1033,9 +1033,9 @@ class Item
|
||||||
$ev['guid'] = $item['guid'];
|
$ev['guid'] = $item['guid'];
|
||||||
$ev['plink'] = $item['plink'];
|
$ev['plink'] = $item['plink'];
|
||||||
$ev['network'] = $item['network'];
|
$ev['network'] = $item['network'];
|
||||||
$ev['protocol'] = $item['protocol'];
|
$ev['protocol'] = $item['protocol'] ?? Conversation::PARCEL_UNKNOWN;
|
||||||
$ev['direction'] = $item['direction'];
|
$ev['direction'] = $item['direction'] ?? Conversation::UNKNOWN;
|
||||||
$ev['source'] = $item['source'];
|
$ev['source'] = $item['source'] ?? '';
|
||||||
|
|
||||||
$event = DBA::selectFirst('event', ['id'], ['uri' => $item['uri'], 'uid' => $item['uid']]);
|
$event = DBA::selectFirst('event', ['id'], ['uri' => $item['uri'], 'uid' => $item['uid']]);
|
||||||
if (DBA::isResult($event)) {
|
if (DBA::isResult($event)) {
|
||||||
|
|
Loading…
Reference in a new issue