From 3b827980972fa2bb1cfdf7aaf2dadd94012a2ab1 Mon Sep 17 00:00:00 2001 From: xue <> Date: Fri, 13 Oct 2006 00:31:09 +0000 Subject: Fixed #417. --- framework/Collections/TList.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework') 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; } /** -- cgit v1.2.3