From 094bb900801a3e14210af039aac0c0d3b7927347 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateu=20Aguil=C3=B3=20Bosch?= Date: Fri, 5 Jun 2015 10:17:17 +0200 Subject: [PATCH] /me facepalms for the amount of needed releases for this --- src/TypedEntity/TypedEntity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TypedEntity/TypedEntity.php b/src/TypedEntity/TypedEntity.php index 7e8a85a..8ff2f73 100644 --- a/src/TypedEntity/TypedEntity.php +++ b/src/TypedEntity/TypedEntity.php @@ -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; } /**