From 7d3f86fb395e5b4078019ad58a0eb4b1118368f9 Mon Sep 17 00:00:00 2001 From: "B. Endres" Date: Fri, 1 Jun 2018 21:16:06 +0200 Subject: [PATCH] fixed crash --- CRM/Membership/PaidByLogic.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CRM/Membership/PaidByLogic.php b/CRM/Membership/PaidByLogic.php index 3e0f864..23f763a 100644 --- a/CRM/Membership/PaidByLogic.php +++ b/CRM/Membership/PaidByLogic.php @@ -208,6 +208,10 @@ public function getRecurringContribution($membership_id) */ public function getRecurringContributions($membership_ids) { $result = array(); + if (empty($membership_ids)) { + return $result; + } + $settings = CRM_Membership_Settings::getSettings(); $paid_via_field = $settings->getPaidViaField(); if (!$paid_via_field) {