From 33e533d580e0cf189cb5ace9c649d9f54dc076fc Mon Sep 17 00:00:00 2001 From: xue <> Date: Thu, 16 Aug 2007 11:46:47 +0000 Subject: fixed a potential state restoration problem. --- 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 bb4874ab..d43ddf10 100644 --- a/framework/Web/UI/TControl.php +++ b/framework/Web/UI/TControl.php @@ -1602,7 +1602,7 @@ class TControl extends TApplicationComponent implements IRenderable, IBindable */ protected function loadStateRecursive(&$state,$needViewState=true) { - if($state!==null) + if(is_array($state)) { // A null state means the stateful properties all take default values. // So if the state is enabled, we have to assign the null value. -- cgit v1.2.3