diff options
author | xue <> | 2007-12-20 16:45:12 +0000 |
---|---|---|
committer | xue <> | 2007-12-20 16:45:12 +0000 |
commit | d253ed938b33aa5bf45351a81e1a4d596e69b5f7 (patch) | |
tree | 709b4bbae35808e5bff2d3195e5e0ae066d22493 /framework/TComponent.php | |
parent | ab5a251cde9abac9038e9652089b2a32bbff5d05 (diff) |
Fixed a bug in TPropertyValue::ensureArray()
Diffstat (limited to 'framework/TComponent.php')
-rw-r--r-- | framework/TComponent.php | 6 |
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 |