From db15e78676c4bdd76c1f6ff32782c07ff0570029 Mon Sep 17 00:00:00 2001 From: xue <> Date: Tue, 6 Mar 2007 14:07:50 +0000 Subject: fixed a typo. --- framework/Web/UI/TControl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework') diff --git a/framework/Web/UI/TControl.php b/framework/Web/UI/TControl.php index 41b26037..4ec48b23 100644 --- a/framework/Web/UI/TControl.php +++ b/framework/Web/UI/TControl.php @@ -848,7 +848,7 @@ class TControl extends TApplicationComponent implements IRenderable, IBindable $this->_flags |= self::IS_CHILD_CREATED; else { - if($this->hasControl() && ($this->_flags & self::IS_CHILD_CREATED)) + if($this->getHasControls() && ($this->_flags & self::IS_CHILD_CREATED)) $this->getControls()->clear(); $this->_flags &= ~self::IS_CHILD_CREATED; } -- cgit v1.2.3