From 139ca38ddcf4998c882cfc98cb932524de210d86 Mon Sep 17 00:00:00 2001 From: xue <> Date: Sat, 4 Feb 2006 23:56:29 +0000 Subject: Modified TDataGrid sample to enable updating rating. --- framework/Web/UI/WebControls/TDataBoundControl.php | 3 ++- 1 file changed, 2 insertions(+), 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 b7294383..0bb771bf 100644 --- a/framework/Web/UI/WebControls/TDataBoundControl.php +++ b/framework/Web/UI/WebControls/TDataBoundControl.php @@ -196,7 +196,8 @@ abstract class TDataBoundControl extends TWebControl $this->dataBindProperties(); $this->onDataBinding(null); $data=$this->getData(); - $this->performDataBinding($data); + if($data instanceof Traversable) + $this->performDataBinding($data); $this->setIsDataBound(true); $this->onDataBound(null); } -- cgit v1.2.3