summaryrefslogtreecommitdiff
path: root/framework/Collections/TList.php
diff options
context:
space:
mode:
authorxue <>2006-01-17 23:58:54 +0000
committerxue <>2006-01-17 23:58:54 +0000
commit54900d0145dfda07bde40dc6e1f0b31935b55444 (patch)
treec34892281f5ffa9f3c907e5ef48c05720707ef5d /framework/Collections/TList.php
parent3ea0de54c63f5f9ed02e259a789b01952041cfbd (diff)
Diffstat (limited to 'framework/Collections/TList.php')
-rw-r--r--framework/Collections/TList.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/Collections/TList.php b/framework/Collections/TList.php
index b9fbd589..2946053b 100644
--- a/framework/Collections/TList.php
+++ b/framework/Collections/TList.php
@@ -246,7 +246,7 @@ class TList extends TComponent implements IteratorAggregate,ArrayAccess
foreach($data as $item)
$this->add($item);
}
- else
+ else if($data!==null)
throw new TInvalidDataTypeException('list_data_not_iterable');
}
@@ -263,7 +263,7 @@ class TList extends TComponent implements IteratorAggregate,ArrayAccess
foreach($data as $item)
$this->add($item);
}
- else
+ else if($data!==null)
throw new TInvalidDataTypeException('list_data_not_iterable');
}