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) {