diff --git a/src/XeroPHP/Remote/Object.php b/src/XeroPHP/Remote/Object.php index 4c9e5384..40be7344 100644 --- a/src/XeroPHP/Remote/Object.php +++ b/src/XeroPHP/Remote/Object.php @@ -167,8 +167,10 @@ public function fromStringArray($input_array, $replace_data = false) { continue; } - if(!isset($input_array[$property])) + if(!isset($input_array[$property])) { + $this->_data[$property] = null; continue; + } //Fix for an earlier assumption that the API didn't return more than two levels of nested objects. //Handles Invoice > Contact > Address etc. in one build.