Skip to content
This repository has been archived by the owner on Mar 16, 2021. It is now read-only.

Commit

Permalink
/me facepalms for the amount of needed releases for this
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateu Aguiló Bosch committed Jun 5, 2015
1 parent 78dab25 commit 094bb90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TypedEntity/TypedEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public function access($op, $account = NULL) {
*/
public function __get($property_name) {
$entity = $this->getEntity();
return empty($entity->{$property_name}) ? NULL : $entity->{$property_name};
return isset($entity->{$property_name}) ? $entity->{$property_name} : NULL;
}

/**
Expand Down

0 comments on commit 094bb90

Please sign in to comment.