diff options
Diffstat (limited to 'engine/classes/ElggRelationship.php')
-rw-r--r-- | engine/classes/ElggRelationship.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/classes/ElggRelationship.php b/engine/classes/ElggRelationship.php index 50a86fff1..0faaf875e 100644 --- a/engine/classes/ElggRelationship.php +++ b/engine/classes/ElggRelationship.php @@ -41,7 +41,7 @@ class ElggRelationship extends ElggData implements * @return mixed */ function get($name) { - if (isset($this->attributes[$name])) { + if (array_key_exists($name, $this->attributes)) { return $this->attributes[$name]; } |