summaryrefslogtreecommitdiff
path: root/framework/TComponent.php
diff options
context:
space:
mode:
authorxue <>2007-12-20 16:45:12 +0000
committerxue <>2007-12-20 16:45:12 +0000
commitd253ed938b33aa5bf45351a81e1a4d596e69b5f7 (patch)
tree709b4bbae35808e5bff2d3195e5e0ae066d22493 /framework/TComponent.php
parentab5a251cde9abac9038e9652089b2a32bbff5d05 (diff)
Fixed a bug in TPropertyValue::ensureArray()
Diffstat (limited to 'framework/TComponent.php')
-rw-r--r--framework/TComponent.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/TComponent.php b/framework/TComponent.php
index 5a3cd2f2..1ac25c7f 100644
--- a/framework/TComponent.php
+++ b/framework/TComponent.php
@@ -578,11 +578,11 @@ class TPropertyValue
{
if(is_string($value))
{
- $trimmed = trim($value);
+ $value = trim($value);
$len = strlen($value);
- if ($len >= 2 && $trimmed[0] == '(' && $trimmed[$len-1] == ')')
+ if ($len >= 2 && $value[0] == '(' && $value[$len-1] == ')')
{
- eval('$array=array'.$trimmed.';');
+ eval('$array=array'.$value.';');
return $array;
}
else