Fix several notices
[friendica.git/.git] / src / Model / Event.php
index 5139abc..2b4932b 100644 (file)
@@ -291,6 +291,9 @@ class Event
                }
 
                $contact = DBA::selectFirst('contact', [], $conditions);
+               if (!DBA::isResult($contact)) {
+                       Logger::warning('Contact not found', ['condition' => $conditions]);
+               }
 
                // Existing event being modified.
                if ($event['id']) {