From 598fac7617264c20b5c7e6f914b5aba18a677b01 Mon Sep 17 00:00:00 2001 From: xue <> Date: Thu, 19 Jan 2006 17:14:45 +0000 Subject: Fix a few issues with listcontrols about databinding. --- framework/Web/UI/WebControls/TDataBoundControl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework/Web/UI/WebControls/TDataBoundControl.php') diff --git a/framework/Web/UI/WebControls/TDataBoundControl.php b/framework/Web/UI/WebControls/TDataBoundControl.php index 1108e0f6..aa177f07 100644 --- a/framework/Web/UI/WebControls/TDataBoundControl.php +++ b/framework/Web/UI/WebControls/TDataBoundControl.php @@ -334,7 +334,7 @@ abstract class TDataBoundControl extends TWebControl return $list; } else if(is_array($value)) - return new TList($value); + return new TMap($value); else if(($value instanceof Traversable) || $value===null) return $value; else -- cgit v1.2.3