whiteoctober/Pagerfanta — pull request #45 by z7 (2011-12-29 11:01:46+00:00)
Title: setCurrentPage() bugfix.

How to reproduce:
Create a Pagerfanta instance linked to an adapter with zero results;
Call $pagerfanta->setCurrentPage(2, false, true);
After this, $pagerfanta->currentPage will be set to -1.