Skip to content

Commit

Permalink
Merge pull request #176 from joshralph93/master
Browse files Browse the repository at this point in the history
Fixing field error variable name
  • Loading branch information
calcinai authored Jul 12, 2016
2 parents 5fa1777 + 8ec1c78 commit f5cd34c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/XeroPHP/Remote/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public function parse() {
*/
private function parseBadRequest(){
if (isset($this->elements)){
$errors = [];
$field_errors = [];
foreach ($this->elements as $n => $element){
if (isset($element['ValidationErrors'])){
$field_errors[] = $element['ValidationErrors'][0]['Message'];
Expand Down

0 comments on commit f5cd34c

Please sign in to comment.