Merge pull request #2815 from Firesphere/patch-2

Don't show next for anything above TotalPages
This commit is contained in:
Ingo Schommer 2014-02-03 11:00:08 -08:00
commit d0ec30dd26

View File

@ -353,7 +353,7 @@ class PaginatedList extends SS_ListDecorator {
* @return bool
*/
public function NotLastPage() {
return $this->CurrentPage() != $this->TotalPages();
return $this->CurrentPage() < $this->TotalPages();
}
/**
@ -421,4 +421,4 @@ class PaginatedList extends SS_ListDecorator {
}
}
}
}