diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-12 18:01:00 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-12 18:01:00 +0000 |
commit | 57c702a95fe6f5b5de43addde34734084d09599e (patch) | |
tree | f9ed3714726c1123bd11af4006d43147d30ea859 /engine/lib | |
parent | 3552569bc928781adc36539e7788dead7d2e06f2 (diff) | |
download | elgg-57c702a95fe6f5b5de43addde34734084d09599e.tar.gz elgg-57c702a95fe6f5b5de43addde34734084d09599e.tar.bz2 |
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
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/extender.php | 5 |
1 files 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; } |