diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f6a54fbaf393033110845850345b4422eb82943f..df19a9869c6ab0b11639429a43f6e03dd90d5aa0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -36,10 +36,12 @@ fake-deploy-beta: - echo "Hello World!" only: - beta + environment: beta fake-deploy-live: stage: deploy script: - echo "Hello World!" only: - - sucs-site \ No newline at end of file + - sucs-site + environment: live \ No newline at end of file diff --git a/lib/suapiv2.php b/lib/suapiv2.php index 2e4384ad22b29dcc0d00fd5abd17d8fcf5d8863f..7da1c226a4955e2dd696d78499e3455e2c27ca96 100644 --- a/lib/suapiv2.php +++ b/lib/suapiv2.php @@ -31,10 +31,8 @@ $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 as $typeOfMember) { - foreach ($typeOfMember["Detail_Collection"]["Detail"] as $member) { - array_push($just_members, $member["@attributes"]); - } +foreach ($membership_data["Detail_Collection"] as $member) { + array_push($just_members, $member["@attributes"]); } /* You can now use $just_members to probe member detials. It's an array of arrays which each contain: