|
From: Ulf E. <ulf...@us...> - 2005-09-09 20:16:39
|
Update of /cvsroot/phpbt/phpbt/templates/default/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20079/templates/default/admin Modified Files: pagination.html Log Message: Avoid "page 1-0 of 0" as pagination text Index: pagination.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/templates/default/admin/pagination.html,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- pagination.html 25 Oct 2004 12:07:03 -0000 1.2 +++ pagination.html 9 Sep 2005 20:16:29 -0000 1.3 @@ -1,4 +1,6 @@ -<div align="center" class="pagination"> - <?php echo $first.' - '. $last.' of '. $total; ?> - <?php if ($pages != "1") echo "<br>[ $pages ]"; ?> -</div> +<div align="center" class="pagination"> +<?php if ($total > 0) { ?> + <?php echo $first.' - '. $last.' of '. $total; ?> + <?php if ($pages != "1") echo "<br>[ $pages ]"; ?> +<?php } ?> +</div> |