diff options
author | xue <> | 2006-03-09 13:08:00 +0000 |
---|---|---|
committer | xue <> | 2006-03-09 13:08:00 +0000 |
commit | 9c0b2dd9ab41b5143fbc1ac5318509d9b626f23a (patch) | |
tree | 3b53caca108d3fddc39be4a580d3b0dd6f123a83 | |
parent | e583d7984a570ba553a3ebf65401dfce44ee261f (diff) |
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.
-rw-r--r-- | framework/Collections/TPagedList.php | 2 |
1 files changed, 1 insertions, 1 deletions
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
*/
|