com web/people: Pagination fixed: index.php

From: Date: Mon, 24 Mar 2014 18:34:00 +0000
Subject: com web/people: Pagination fixed: index.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-18578@lists.php.net to get a copy of this message
Commit: bdf5297cd86e51a7fc883cc349d0012ef4f36355 Author: Sobak <msobaczewski@gmail.com> Mon, 24 Mar 2014 19:34:00 +0100 Parents: 6734f030d3f05fce207ddbef32dc46830876420b Branches: master Link: http://git.php.net/?p=web/people.git;a=commitdiff;h=bdf5297cd86e51a7fc883cc349d0012ef4f36355 Log: Pagination fixed Changed paths: M index.php Diff: diff --git a/index.php b/index.php index 913451f..9c25bf3 100644 --- a/index.php +++ b/index.php @@ -36,13 +36,13 @@ $page = filter_input(INPUT_GET, "page", FILTER_VALIDATE_INT, array("options" => <tfoot> <tr> <th> - <?php if ($page): ?> + <?php if ($page > 1): ?> <a href="?page=<?php echo $page-1?>">Previous page</a></th> <?php endif ?> </th> <th></th> <th> - <?php if ($x == 99): ?> + <?php if ($x == 49): ?> <a href="?page=<?php echo ++$page?>">Next page</a></th> <?php endif ?> </th>

« previous php.webmaster (#18578) next »