From e9dfde0c87a0fdabaa888368a881340c89d1f75a Mon Sep 17 00:00:00 2001 From: Dave Greenberg Date: Mon, 5 Aug 2013 16:37:10 -0700 Subject: [PATCH] CRM-13157 added static to the function and tested isDeleteRelatedMembership use case ---------------------------------------- * CRM-13157: isDeleteRelatedMembership() should be declared as static http://issues.civicrm.org/jira/browse/CRM-13157 --- CRM/Contact/BAO/Relationship.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CRM/Contact/BAO/Relationship.php b/CRM/Contact/BAO/Relationship.php index 2ba8c638a7..0078f89eac 100644 --- a/CRM/Contact/BAO/Relationship.php +++ b/CRM/Contact/BAO/Relationship.php @@ -1338,8 +1338,10 @@ SELECT count(*) * Helper function to check whether to delete the membership or * not. * + * @static + * */ - function isDeleteRelatedMembership($relTypeIds, $contactId, $mainRelatedContactId, $relTypeId, $relIds) { + static function isDeleteRelatedMembership($relTypeIds, $contactId, $mainRelatedContactId, $relTypeId, $relIds) { if (in_array($relTypeId, $relTypeIds)) { return TRUE; } -- 2.25.1