Author: sevein
Date: Mon Sep 14 06:11:18 2009
New Revision: 3259
Log:
Assume first page when we don't have a page number set
Modified:
trunk/lib/QubitSearchPager.class.php
Modified: trunk/lib/QubitSearchPager.class.php
==============================================================================
--- trunk/lib/QubitSearchPager.class.php Mon Sep 14 00:02:58 2009
(r3258)
+++ trunk/lib/QubitSearchPager.class.php Mon Sep 14 06:11:18 2009
(r3259)
@@ -53,8 +53,8 @@
$this->perPage = 10;
}
- // Assign the current page
- $this->page = $page;
+ // Assign the current page, first one by default
+ $this->page = (int) $page ? $page : 1;
// Take the length of the array
$this->length = count($hits);
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---