From 4200625c681b343c30a83627b70c3104e40b2211 Mon Sep 17 00:00:00 2001 From: brettp Date: Sun, 2 Jan 2011 22:40:22 +0000 Subject: 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 --- engine/classes/ElggRelationship.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engine/classes/ElggRelationship.php') 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]; } -- cgit v1.2.3