summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorxue <>2006-10-13 00:31:09 +0000
committerxue <>2006-10-13 00:31:09 +0000
commit3b827980972fa2bb1cfdf7aaf2dadd94012a2ab1 (patch)
treebc6fdf9330e12f76791fc16d277c8e2447a4883e /framework
parent5abdafeb9ded0c1c41992f7b3758f1dc02255683 (diff)
Fixed #417.
Diffstat (limited to 'framework')
-rw-r--r--framework/Collections/TList.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Collections/TList.php b/framework/Collections/TList.php
index f22d6e7b..e646e203 100644
--- a/framework/Collections/TList.php
+++ b/framework/Collections/TList.php
@@ -134,7 +134,7 @@ class TList extends TComponent implements IteratorAggregate,ArrayAccess,Countabl
public function add($item)
{
$this->insertAt($this->_c,$item);
- return $this->_c;
+ return $this->_c-1;
}
/**