From 9c0b2dd9ab41b5143fbc1ac5318509d9b626f23a Mon Sep 17 00:00:00 2001 From: xue <> Date: Thu, 9 Mar 2006 13:08:00 +0000 Subject: Restored default current page index to 0 (meaning the first page which is always true even if there is no item in the collection). If -1 there will be problem accessing collection items. --- framework/Collections/TPagedList.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework') diff --git a/framework/Collections/TPagedList.php b/framework/Collections/TPagedList.php index 9637f499..e441e67c 100644 --- a/framework/Collections/TPagedList.php +++ b/framework/Collections/TPagedList.php @@ -68,7 +68,7 @@ class TPagedList extends TList /** * @var integer current page index */ - private $_currentPageIndex=-1; + private $_currentPageIndex=0; /** * @var integer user-assigned number of items in data source */ -- cgit v1.2.3