Commit 4a49a437 authored by Thomas Wood's avatar Thomas Wood
Browse files

Don't print the page navigation if there is only one page!

svn path=/branches/art-hub/; revision=573
parent 37563dfa
...@@ -37,6 +37,10 @@ class Paginator ...@@ -37,6 +37,10 @@ class Paginator
$num_pages = ceil ($this->total / $this->limit); $num_pages = ceil ($this->total / $this->limit);
/* only one page, no point in printing navigation! */
if ($num_pages <= 1)
return;
if ($context > $num_pages) if ($context > $num_pages)
$context = $num_pages; $context = $num_pages;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment