diff options
author | xue <> | 2006-03-18 01:26:22 +0000 |
---|---|---|
committer | xue <> | 2006-03-18 01:26:22 +0000 |
commit | 3323291d70c162e461126366a28a0334f6451c9f (patch) | |
tree | d3db29fe2475b931d639b06252dfacfc8904d655 /framework | |
parent | e317d0289a304d0bb7ce7499834458281bf1ca63 (diff) |
Fixed a bug about setting empty property for non-control component in template.
Diffstat (limited to 'framework')
-rw-r--r-- | framework/Web/UI/TTemplateManager.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Web/UI/TTemplateManager.php b/framework/Web/UI/TTemplateManager.php index 33c2edc5..26cc9c3a 100644 --- a/framework/Web/UI/TTemplateManager.php +++ b/framework/Web/UI/TTemplateManager.php @@ -739,7 +739,7 @@ class TTemplate extends TApplicationComponent implements ITemplate {
foreach($attributes as $name=>$att)
{
- if($att[0]===self::CONFIG_DATABIND)
+ if(is_array($att) && $att[0]===self::CONFIG_DATABIND)
throw new TConfigurationException('template_databind_forbidden',$type,$name);
if(($pos=strpos($name,'.'))!==false)
{
|