From 1f4a4016adde7cdab9ef1c967e970ecf3747cfbc Mon Sep 17 00:00:00 2001 From: Imran Hussain Date: Fri, 15 Jul 2016 10:51:24 +0100 Subject: [PATCH 1/2] Add "enviroments" to the sucssite ci thing. https://projects.sucs.org/help/ci/environments --- .gitlab-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f6a54fb..df19a98 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 -- GitLab From c46edb8487ebbc42d5f4d5380335cc6f53f758a3 Mon Sep 17 00:00:00 2001 From: Imran Hussain Date: Mon, 5 Sep 2016 20:23:06 +0100 Subject: [PATCH 2/2] fix su api --- lib/suapiv2.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/suapiv2.php b/lib/suapiv2.php index 2e4384a..7da1c22 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: -- GitLab