summaryrefslogtreecommitdiff
path: root/framework/Web/UI
diff options
context:
space:
mode:
authorxue <>2006-08-26 16:19:45 +0000
committerxue <>2006-08-26 16:19:45 +0000
commit17f7daf67672f2d2252d9199451fe873d61c2c7a (patch)
tree457e200910e53f28a5ceb43a890dee5ee8eff371 /framework/Web/UI
parenta5d9b3fa5cc335f74993a576cea8b4ddcdde2fcc (diff)
TControl::findControlsByType() now only returns objects of the specified type
Diffstat (limited to 'framework/Web/UI')
-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 9c3413bc..d13b94cf 100644
--- a/framework/Web/UI/TControl.php
+++ b/framework/Web/UI/TControl.php
@@ -940,7 +940,7 @@ class TControl extends TApplicationComponent implements IRenderable, IBindable
{
foreach($this->_rf[self::RF_CONTROLS] as $control)
{
- if($control instanceof $type)
+ if(is_object($control) && get_class($control)===$type)
$controls[]=$control;
if(($control instanceof TControl) && $control->getHasControls())
$controls=array_merge($controls,$control->findControlsByType($type));