From af832a5a9018c7dcc2f24111d82049902269fc53 Mon Sep 17 00:00:00 2001 From: xue <> Date: Wed, 18 Oct 2006 01:38:47 +0000 Subject: merge from 3.0 branch till 1463. --- framework/Collections/TList.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework/Collections') 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