resetting CPagination

Hi! The aim is to reset current page to 0 on some condition. I have tried:

$pages = new CPagination(...);


$pages->pageSize = ...;


if(some predicate here) $pages->currentPage = 0;


$pages->applyLimit($crit);


...








Doesn't work. Thoughts?

Thanks for finding out this. Just checked in a fix.

Quote

Thanks for finding out this. Just checked in a fix.
Too fast!  ;D Thanks! - verified.