X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=blobdiff_plain;f=phpfspot.class.php;h=f0e2fb2f085d632dbb28918ebd9173dbec6419a0;hp=c14274212bc1cc29fe98428bb3c4781888c496a3;hb=583a68ff5ba655aeb17e3f09a5945aa735b91774;hpb=7258a4139baaaace3ce9bbeeeab8a20da1b12ff7 diff --git a/phpfspot.class.php b/phpfspot.class.php index c142742..f0e2fb2 100644 --- a/phpfspot.class.php +++ b/phpfspot.class.php @@ -468,7 +468,6 @@ class PHPFSPOT { for($i = 1; $i <= $last_page; $i++) { - if($current_page == $i) $style = "style=\"font-size: 125%;\""; elseif($current_page-1 == $i || $current_page+1 == $i) @@ -486,7 +485,9 @@ class PHPFSPOT { } - $this->tmpl->assign('page_selector', $page_select); + /* only show the page selector if we have more then one page */ + if($last_page > 1) + $this->tmpl->assign('page_selector', $page_select); } $current_tags = "";