From 34cae62180fe350a5168502bdc479f8e40e6e4fa Mon Sep 17 00:00:00 2001 From: xue <> Date: Tue, 6 Mar 2007 14:08:14 +0000 Subject: fixed a typo. --- framework/Web/UI/TControl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework/Web/UI/TControl.php') diff --git a/framework/Web/UI/TControl.php b/framework/Web/UI/TControl.php index a0242d54..85770cb4 100644 --- a/framework/Web/UI/TControl.php +++ b/framework/Web/UI/TControl.php @@ -849,7 +849,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