From 7b49888da521d113dc5a45cb8429efcf245c03cf Mon Sep 17 00:00:00 2001 From: xue <> Date: Fri, 24 Feb 2006 01:13:12 +0000 Subject: Fixed a few minor issues about the newly added ReadOnly property. --- 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 df580534..85da4f3c 100644 --- a/framework/Collections/TMap.php +++ b/framework/Collections/TMap.php @@ -128,7 +128,7 @@ class TMap extends TComponent implements IteratorAggregate,ArrayAccess if(!$this->_r) $this->_d[$key]=$value; else - throw new TInvalidOperation('map_readonly'); + throw new TInvalidOperation('map_readonly',get_class($this)); } /** @@ -151,7 +151,7 @@ class TMap extends TComponent implements IteratorAggregate,ArrayAccess return null; } else - throw new TInvalidOperation('map_readonly'); + throw new TInvalidOperation('map_readonly',get_class($this)); } /** -- cgit v1.2.3