From 54900d0145dfda07bde40dc6e1f0b31935b55444 Mon Sep 17 00:00:00 2001 From: xue <> Date: Tue, 17 Jan 2006 23:58:54 +0000 Subject: --- framework/Collections/TMap.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'framework/Collections/TMap.php') diff --git a/framework/Collections/TMap.php b/framework/Collections/TMap.php index 73665136..d5a44322 100644 --- a/framework/Collections/TMap.php +++ b/framework/Collections/TMap.php @@ -180,7 +180,7 @@ class TMap extends TComponent implements IteratorAggregate,ArrayAccess foreach($data as $key=>$value) $this->add($key,$value); } - else + else if($data!==null) throw new TInvalidDataTypeException('map_data_not_iterable'); } @@ -197,7 +197,7 @@ class TMap extends TComponent implements IteratorAggregate,ArrayAccess foreach($data as $key=>$value) $this->add($key,$value); } - else + else if($data!==null) throw new TInvalidDataTypeException('map_data_not_iterable'); } -- cgit v1.2.3