Skip to content

Commit

Permalink
fix sensio In
Browse files Browse the repository at this point in the history
  • Loading branch information
romainkuzniak committed Jan 20, 2015
1 parent 3a0cfba commit 5ca0037
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function setTotalItems($totalItems)
*/
public function getTotalPages()
{
if (null != $this->itemsPerPage) {
if (null !== $this->itemsPerPage && 0 !== $this->itemsPerPage) {
return (int) ceil($this->totalItems / $this->itemsPerPage);
} else {
return 1;
Expand Down

0 comments on commit 5ca0037

Please sign in to comment.