From e2826a98d355e030bab1695996bf8cacfa0c2442 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 21 Jul 2020 18:30:45 +0000 Subject: [PATCH] Added logging --- src/Model/Item.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Model/Item.php b/src/Model/Item.php index 39fb3cb54..96aeb6381 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -2199,9 +2199,11 @@ class Item $item['contact-id'] = $contact['id']; } else { // Shouldn't happen at all + Logger::warning('contact-id could not be fetched', ['uid' => $uid, 'item' => $item]); $self = DBA::selectFirst('contact', ['id'], ['self' => true, 'uid' => $uid]); if (!DBA::isResult($self)) { // Shouldn't happen even less + Logger::warning('self contact could not be fetched', ['uid' => $uid, 'item' => $item]); return 0; } $item['contact-id'] = $self['id'];