diff options
-rw-r--r-- | views/default/navigation/pagination.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/views/default/navigation/pagination.php b/views/default/navigation/pagination.php index 54fa3bdec..49275f053 100644 --- a/views/default/navigation/pagination.php +++ b/views/default/navigation/pagination.php @@ -17,10 +17,10 @@ } else { $offset = $vars['offset']; } - if (!isset($vars['limit'])) { + if ((!isset($vars['limit'])) || (!$limit)) { $limit = 10; } else { - $limit = $vars['limit']; + $limit = (int)$vars['limit']; } if (!isset($vars['count'])) { $count = 0; |