From 54067983e5b387fc8518a14203dbc87606ef7262 Mon Sep 17 00:00:00 2001 From: deepak-srivastava Date: Wed, 15 Oct 2014 14:15:03 +0100 Subject: [PATCH] don't bother processing records with entity-id or table as NULL --- CRM/Core/BAO/RecurringEntity.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CRM/Core/BAO/RecurringEntity.php b/CRM/Core/BAO/RecurringEntity.php index 21c0899032..db0fe1cf51 100644 --- a/CRM/Core/BAO/RecurringEntity.php +++ b/CRM/Core/BAO/RecurringEntity.php @@ -611,7 +611,10 @@ class CRM_Core_BAO_RecurringEntity extends CRM_Core_DAO_RecurringEntity { $pEntityID = $linkedDAO->$idCol; $pEntityTable = $linkedDAO->$tableCol; - + + if (empty($pEntityID) || empty($pEntityTable)) { + return NULL; + } // find all parent recurring entity set $pRepeatingEntities = self::getEntitiesFor($pEntityID, $pEntityTable); -- 2.25.1