diff options
-rw-r--r-- | HISTORY | 3 | ||||
-rw-r--r-- | framework/Collections/TList.php | 2 |
2 files changed, 3 insertions, 2 deletions
@@ -1,6 +1,7 @@ Version 3.0.5 October 8, 2006 =============================== -BUG: Ticket#409 - Multiple page services will mess up page caching +BUG: Ticket#409 - Multiple page services will mess up page caching (Qiang) +BUG: Ticket#417 - SelectedIndex in template incorrect caused by bug in TList (Qiang) CHG: Ticket#358 - TFileUpload::saveAs() now returns false instead of exception when error (Qiang) ENH: Ticket#361 - Introduced include template tag that supports including external templates (Qiang) ENH: Ticket#366 - white spaces are now allowed around attribute names in template (Qiang) 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;
}
/**
|