X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=maps%2Fphp%2Flist.php;h=672f09db2ed90fa124293773c8abec4bd3c4812c;hb=a9a87bbe82dc57fbb837f86139419eaf76095105;hp=4050d33040ece1fc9d0df11436e60eaf00295dc8;hpb=020a4a5ea2be725b155cae3a2cadc9aba3911b9b;p=clearscm.git diff --git a/maps/php/list.php b/maps/php/list.php index 4050d33..672f09d 100755 --- a/maps/php/list.php +++ b/maps/php/list.php @@ -17,9 +17,12 @@ include "MAPS.php"; MAPSHeader (); $next = (isset ($_GET ["next"])) ? $_GET ["next"] : 0; -// $prev; $type = $_GET ["type"]; - $message = $_GET ["message"]; + if (isset($_GET['message'])) { + $message = $_GET["message"]; + } else { + $message = ''; + } // if $Type = ucfirst ($type); $Userid = ucfirst ($userid); ?> @@ -46,7 +49,7 @@ if (($next - $lines) > 0) { $total = CountList ($type); $last = $next + $lines < $total ? $next + $lines : $total; -$last_page = floor ($total / $lines); +$last_page = floor ($total / $lines) + 1; $this_page = $next / $lines + 1; ?> @@ -69,32 +72,34 @@ $this_page = $next / $lines + 1; print ""; print ""; print "Page: "; - print " of $last_page"; + //print "next: $next last_page: $last_page"; + print " of $last_page"; ?>
@@ -114,13 +119,13 @@ $this_page = $next / $lines + 1;