Skip to content
This repository has been archived by the owner on May 15, 2018. It is now read-only.

Commit

Permalink
changed condition to check the global array value.
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbrosch committed Sep 3, 2016
1 parent 8433fff commit 81fc701
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Domain/Entity/Entity.php
Expand Up @@ -99,7 +99,7 @@ private function loadFromGlobalArray($global, $prefix = '')
$globalProperty = $prefix.$property;

//check if the property name exists on the global.
if (filter_input(INPUT_POST, $globalProperty, FILTER_NULL_ON_FAILURE) !== false) {
if (filter_has_var($global, $globalProperty) === true) {
$reflection = new \ReflectionProperty(get_class($this), $property);

//Get type from doc comments.
Expand Down

0 comments on commit 81fc701

Please sign in to comment.