Skip to content

Commit

Permalink
Merge pull request Nayjest#136 from hackel/patch-3
Browse files Browse the repository at this point in the history
Handle a non-existent field in an array
  • Loading branch information
Nayjest authored Jul 11, 2016
2 parents 387757d + ed7cfe0 commit 155d74f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ObjectDataRow.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ protected function extractCellValue($fieldName)
$parts = explode('.', $fieldName);
$res = $this->src;
foreach ($parts as $part) {
$res = is_object($res) ? $res->{$part} : $res[$part];
$res = data_get($res, $part);
if ($res === null) {
return $res;
}
Expand Down

0 comments on commit 155d74f

Please sign in to comment.