Hide pagination when not necessary
This commit is contained in:
parent
8bf50d6a7f
commit
1e466a66db
|
|
@ -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">';
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue