summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TListControl.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/TListControl.php
parentf97358b8da7a2cbb1bf6438298286f7290616381 (diff)
Fixed a bug about performing databind with an empty dataset.
Diffstat (limited to 'framework/Web/UI/WebControls/TListControl.php')
-rw-r--r--framework/Web/UI/WebControls/TListControl.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/framework/Web/UI/WebControls/TListControl.php b/framework/Web/UI/WebControls/TListControl.php
index 169cc72c..00381890 100644
--- a/framework/Web/UI/WebControls/TListControl.php
+++ b/framework/Web/UI/WebControls/TListControl.php
@@ -151,6 +151,8 @@ abstract class TListControl extends TDataBoundControl
$items=$this->getItems();
if(!$this->getAppendDataBoundItems())
$items->clear();
+ if(!($data instanceof Traversable))
+ return;
$textField=$this->getDataTextField();
if($textField==='')
$textField=0;