From 23380ec740c9db50789d6a84e6a1f96f7026c11b Mon Sep 17 00:00:00 2001 From: Matthew Wire Date: Mon, 28 Aug 2017 18:37:36 +0100 Subject: [PATCH] Add warning log message about bad data --- CRM/Event/Selector/Search.php | 1 + 1 file changed, 1 insertion(+) diff --git a/CRM/Event/Selector/Search.php b/CRM/Event/Selector/Search.php index a9432f1f56..ce7ecfb530 100644 --- a/CRM/Event/Selector/Search.php +++ b/CRM/Event/Selector/Search.php @@ -344,6 +344,7 @@ class CRM_Event_Selector_Search extends CRM_Core_Selector_Base implements CRM_Co // Skip registration if event_id is NULL if (empty($row['event_id'])) { + Civi::log()->warning('Participant record without event ID. You have invalid data in your database!'); continue; } -- 2.25.1