Skip to content

Commit

Permalink
Merge pull request #1 from afosto/bugfix/issuers_response_array_key
Browse files Browse the repository at this point in the history
fixed array indexes in FetchIssuersResponse
  • Loading branch information
andypieters committed Feb 20, 2016
2 parents 27ca6d3 + d9dd16f commit ff6de44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Message/FetchIssuersResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ class FetchIssuersResponse extends AbstractResponse implements FetchIssuersRespo
*/
public function getIssuers()
{
if (isset($this->data['countryOptionList']['NL']['paymentOptionList'][10])) {
if (isset($this->data['countryOptionList']['NL']['paymentOptionList'][10]['paymentOptionSubList'])) {
$issuers = array();

foreach ($this->data['countryOptionList']['NL']['paymentOptionList'][10] as $issuer) {
foreach ($this->data['countryOptionList']['NL']['paymentOptionList'][10]['paymentOptionSubList'] as $issuer) {
$issuers[] = new Issuer($issuer['id'], $issuer['visibleName'], 10);
}

Expand Down

0 comments on commit ff6de44

Please sign in to comment.