Skip to content

Commit

Permalink
Double check that our array is not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroendesloovere committed Jun 12, 2018
1 parent c29e0d4 commit d07887a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Gateway/MailChimpSubscriberGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public function hasStatus(string $email, string $listId, string $status): bool
);

// we have found a member
if (is_array($member)) {
if (is_array($member) && !empty($member)) {
return ($member['status'] === $status);
}

Expand Down

0 comments on commit d07887a

Please sign in to comment.