[SUCS Devel] [Git][sucssite/sucs-site][master] Fix suapi again...

Imran Hussain imranh at sucs.org
Tue Sep 20 16:09:35 BST 2016


Imran Hussain pushed to branch master at sucssite / sucs-site


Commits:
419d3d7c by Imran Hussain at 2016-09-20T16:10:40+01:00
Fix suapi again...

- - - - -


1 changed file:

- lib/suapiv2.php


Changes:

=====================================
lib/suapiv2.php
=====================================
--- a/lib/suapiv2.php
+++ b/lib/suapiv2.php
@@ -31,7 +31,7 @@ $membership_data = $formated_raw_data["table1"]["table1_Product_Collection"]["ta
 
 // make a new array that just contains *every* member no matter what they bought
 $just_members = array();
-foreach ($membership_data["Detail_Collection"] as $member) {
+foreach ($membership_data["Detail_Collection"]["Detail"] as $member) {
     array_push($just_members, $member["@attributes"]);
 }
 



View it on GitLab: https://projects.sucs.org/sucssite/sucs-site/commit/419d3d7c2f5ddf87e48057476cfe8baaecb937ae
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/devel/attachments/20160920/cd342756/attachment.html>


More information about the Devel mailing list