From 17f7daf67672f2d2252d9199451fe873d61c2c7a Mon Sep 17 00:00:00 2001 From: xue <> Date: Sat, 26 Aug 2006 16:19:45 +0000 Subject: TControl::findControlsByType() now only returns objects of the specified type --- 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 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)); -- cgit v1.2.3