summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
Diffstat (limited to 'framework')
-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.