summaryrefslogtreecommitdiff
path: root/framework/Collections/TList.php
diff options
context:
space:
mode:
authorxue <>2006-03-05 04:00:52 +0000
committerxue <>2006-03-05 04:00:52 +0000
commit8c0cc31021515bdc29a6c6ebc44e903acdb0430f (patch)
tree883749d34cef241cd1cadf3139e4fe5c2397fc69 /framework/Collections/TList.php
parent7cd0bdea1d094485ae197fd80297791555c08d1c (diff)
Added name-based cookie retrieval.
Diffstat (limited to 'framework/Collections/TList.php')
-rw-r--r--framework/Collections/TList.php5
1 files changed, 1 insertions, 4 deletions
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);
}
/**