@@ -106,18 +106,18 @@ |
||
| 106 | 106 | |
| 107 | 107 | // ошибки либо уведомления |
| 108 | 108 | if (isset($answer['warnings']) && isset($answer['warnings'])) { |
| 109 | - $info = $answer['warnings']; |
|
| 109 | + $info = $answer['warnings']; |
|
| 110 | 110 | |
| 111 | - if ($answer['errors']) { |
|
| 111 | + if ($answer['errors']) { |
|
| 112 | 112 | $info = $answer['errors']; |
| 113 | 113 | if ($answer['errorCodes']) { |
| 114 | - $info = []; |
|
| 115 | - foreach ($answer['errorCodes'] as $key => $err) { |
|
| 114 | + $info = []; |
|
| 115 | + foreach ($answer['errorCodes'] as $key => $err) { |
|
| 116 | 116 | $info['StatusCode'] = $err; |
| 117 | 117 | $info['StatusLocale'] = __('novaposhta::novaposhta.statusCode.'.$err); |
| 118 | - } |
|
| 118 | + } |
|
| 119 | + } |
|
| 119 | 120 | } |
| 120 | - } |
|
| 121 | 121 | } |
| 122 | 122 | |
| 123 | 123 | if (! $info && isset($answer['info'])) { |