summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TDataBoundControl.php
diff options
context:
space:
mode:
authorxue <>2006-02-04 05:05:03 +0000
committerxue <>2006-02-04 05:05:03 +0000
commite7622f08814c6c7a1166addf9bc23c5780bd74b0 (patch)
tree67f9648fb6c9b62688a0acebb33d8788c506c13c /framework/Web/UI/WebControls/TDataBoundControl.php
parentf97358b8da7a2cbb1bf6438298286f7290616381 (diff)
Fixed a bug about performing databind with an empty dataset.
Diffstat (limited to 'framework/Web/UI/WebControls/TDataBoundControl.php')
-rw-r--r--framework/Web/UI/WebControls/TDataBoundControl.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/framework/Web/UI/WebControls/TDataBoundControl.php b/framework/Web/UI/WebControls/TDataBoundControl.php
index 026d2e86..b7294383 100644
--- a/framework/Web/UI/WebControls/TDataBoundControl.php
+++ b/framework/Web/UI/WebControls/TDataBoundControl.php
@@ -196,10 +196,7 @@ abstract class TDataBoundControl extends TWebControl
$this->dataBindProperties();
$this->onDataBinding(null);
$data=$this->getData();
- if($data instanceof Traversable)
- $this->performDataBinding($data);
- else if($data!==null)
- throw new TInvalidDataTypeException('databoundcontrol_data_nontraversable');
+ $this->performDataBinding($data);
$this->setIsDataBound(true);
$this->onDataBound(null);
}