summaryrefslogtreecommitdiff
path: root/framework/Web
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web')
-rw-r--r--framework/Web/UI/TControl.php2
1 files changed, 1 insertions, 1 deletions
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;
}