summaryrefslogtreecommitdiff
path: root/framework/Web
diff options
context:
space:
mode:
authorxue <>2007-08-16 11:46:47 +0000
committerxue <>2007-08-16 11:46:47 +0000
commit33e533d580e0cf189cb5ace9c649d9f54dc076fc (patch)
tree27306b6094c82c3f8354a021c2ca334c71b3d560 /framework/Web
parent237411ea575639987ab0522eb3be672bc9edee78 (diff)
fixed a potential state restoration problem.
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 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.