issue6, only show page selector if more then one page
authorAndreas Unterkircher <unki@netshadow.at>
Sun, 1 Jul 2007 09:13:27 +0000 (09:13 +0000)
committerAndreas Unterkircher <unki@netshadow.at>
Sun, 1 Jul 2007 09:13:27 +0000 (09:13 +0000)
git-svn-id: file:///var/lib/svn/phpfspot/trunk@154 fa6a889d-dae6-447d-9e79-4ba9a3039384

phpfspot.class.php

index c14274212bc1cc29fe98428bb3c4781888c496a3..f0e2fb2f085d632dbb28918ebd9173dbec6419a0 100644 (file)
@@ -468,7 +468,6 @@ class PHPFSPOT {
 
          for($i = 1; $i <= $last_page; $i++) {
 
 
          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)
             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 = "";
       }
 
       $current_tags = "";