From 8c0cc31021515bdc29a6c6ebc44e903acdb0430f Mon Sep 17 00:00:00 2001 From: xue <> Date: Sun, 5 Mar 2006 04:00:52 +0000 Subject: Added name-based cookie retrieval. --- framework/Collections/TList.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'framework/Collections/TList.php') diff --git a/framework/Collections/TList.php b/framework/Collections/TList.php index 6dd2561b..244eab0f 100644 --- a/framework/Collections/TList.php +++ b/framework/Collections/TList.php @@ -298,10 +298,7 @@ class TList extends TComponent implements IteratorAggregate,ArrayAccess */ public function offsetGet($offset) { - if($offset>=0 && $offset<$this->_c) - return $this->_d[$offset]; - else - throw new TInvalidDataValueException('list_index_invalid',$offset); + return $this->itemAt($offset); } /** -- cgit v1.2.3