Skip to content

Commit

Permalink
Return first attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolajlovenhardt committed Sep 26, 2016
1 parent 9afec9a commit b64dcd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/PodioItemField.php
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,7 @@ public function __set($name, $value) {
public function __get($name) {
$attribute = parent::__get($name);
if ($name == 'values' && $attribute) {
return (isset($attribute[0]['value'])) ? $attribute[0]['value'] : $attribute;
return (isset($attribute[0]['value'])) ? $attribute[0]['value'] : $attribute[0];
}
return $attribute;
}
Expand Down

0 comments on commit b64dcd6

Please sign in to comment.