summaryrefslogtreecommitdiff
path: root/framework/Collections
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Collections')
-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);
}
/**