We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9497dc commit 34011aeCopy full SHA for 34011ae
src/Mailchimp/Error.php
@@ -64,9 +64,9 @@ public function getFriendlyMessage()
64
$error['title'] = $this->title . " for Api Call: [" . $this->url. "] using method [".$this->method."]";
65
$error['detail'] = $this->detail;
66
if(is_array($this->errors)) {
67
- foreach ($this->errors as $error) {
68
- $field = array_key_exists('field', $error) ? $error['field'] : '';
69
- $message = array_key_exists('message', $error) ? $error['message'] : '';
+ foreach ($this->errors as $errors) {
+ $field = array_key_exists('field', $errors) ? $errors['field'] : '';
+ $message = array_key_exists('message', $errors) ? $errors['message'] : '';
70
$error['field'][$field] = $message;
71
}
72
0 commit comments