diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-01-02 22:40:22 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-01-02 22:40:22 +0000 |
commit | 4200625c681b343c30a83627b70c3104e40b2211 (patch) | |
tree | d0e0198fdb73bac62ab16940ad928ee1041a29ae /engine/classes/ElggEntity.php | |
parent | 7fa7ef10e5969df7a9faf5b51deb65179c169969 (diff) | |
download | elgg-4200625c681b343c30a83627b70c3104e40b2211.tar.gz elgg-4200625c681b343c30a83627b70c3104e40b2211.tar.bz2 |
Refs #2490. Using array_key_exists() instead of isset() in get() overrides to prevent a check for (invalid) metadata with the name of an attribute if that attribute evaluates to !isset().
git-svn-id: http://code.elgg.org/elgg/trunk@7815 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/classes/ElggEntity.php')
-rw-r--r-- | engine/classes/ElggEntity.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/classes/ElggEntity.php b/engine/classes/ElggEntity.php index fb80673dc..100d882e5 100644 --- a/engine/classes/ElggEntity.php +++ b/engine/classes/ElggEntity.php @@ -167,7 +167,7 @@ abstract class ElggEntity extends ElggData implements */ public function get($name) { // See if its in our base attributes - if (isset($this->attributes[$name])) { + if (array_key_exists($name, $this->attributes)) { return $this->attributes[$name]; } |