diff options
author | xue <> | 2006-03-05 04:00:52 +0000 |
---|---|---|
committer | xue <> | 2006-03-05 04:00:52 +0000 |
commit | 8c0cc31021515bdc29a6c6ebc44e903acdb0430f (patch) | |
tree | 883749d34cef241cd1cadf3139e4fe5c2397fc69 /framework/Collections | |
parent | 7cd0bdea1d094485ae197fd80297791555c08d1c (diff) |
Added name-based cookie retrieval.
Diffstat (limited to 'framework/Collections')
-rw-r--r-- | framework/Collections/TList.php | 5 |
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);
}
/**
|