From 57c702a95fe6f5b5de43addde34734084d09599e Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 12 Feb 2009 18:01:00 +0000 Subject: A correction to the way attributes are set for extenders. git-svn-id: https://code.elgg.org/elgg/trunk@2730 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/extender.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/engine/lib/extender.php b/engine/lib/extender.php index c7fe9ed48..daa763fa0 100644 --- a/engine/lib/extender.php +++ b/engine/lib/extender.php @@ -68,8 +68,9 @@ */ protected function set($name, $value, $value_type = "") { - $this->attributes[$name] = $value; - $this->attributes['value_type'] = detect_extender_valuetype($value, $value_type); + $this->attributes[$name] = $value; + if ($name == 'value') + $this->attributes['value_type'] = detect_extender_valuetype($value, $value_type); return true; } -- cgit v1.2.3