summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/helpers.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers.php b/app/helpers.php
index b53e59e7..ac5b788f 100644
--- a/app/helpers.php
+++ b/app/helpers.php
@@ -618,6 +618,10 @@ function paginate(array $pagination)
{
extract($pagination);
+ if ($pagination['offset'] === 0 && ($total - $pagination['offset']) < $limit) {
+ return '';
+ }
+
$html = '<div class="pagination">';
$html .= '<span class="pagination-previous">';