silverstripe/sapphire — pull request #1062 by drzax (2012-12-20 02:06:54+00:00)
Title: BUGFIX Even if there are zero items there is always at least one page.

Either TotalPages needs to return 1 even if there are zero items or CurrentPage needs to return 0 if there are zero items. Always having at least one page will be easier to deal with and introduces fewer changes.