summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorxue <>2006-03-18 01:26:22 +0000
committerxue <>2006-03-18 01:26:22 +0000
commit3323291d70c162e461126366a28a0334f6451c9f (patch)
treed3db29fe2475b931d639b06252dfacfc8904d655 /framework
parente317d0289a304d0bb7ce7499834458281bf1ca63 (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.php2
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)
{