From: Eileen McNaughton <eileen@fuzion.co.nz>
Date: Thu, 17 Jul 2014 09:28:06 +0000 (+1200)
Subject: fix inconsistent return value from fn
X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f82cf0ed9bde08ae2dfb18a73306c37ef97b0172;p=civicrm-core.git

fix inconsistent return value from fn
putting this in the queue when I remember as deep in something else but it fixed a fatal on off-site payment processor
---

diff --git a/CRM/Member/BAO/Membership.php b/CRM/Member/BAO/Membership.php
index 4b0cea95c8..d900d6f28e 100644
--- a/CRM/Member/BAO/Membership.php
+++ b/CRM/Member/BAO/Membership.php
@@ -2361,7 +2361,7 @@ INNER JOIN  civicrm_contact contact ON ( contact.id = membership.contact_id AND
           );
         }
 
-        return $membership;
+        return array($membership, $renewalMode, $dates);
       }
 
       // Check and fix the membership if it is STALE