Commit: 91e2502e2a8634ea06b739437e40bb782e3ef4d9 Author: Sherif Ramadan <[email protected]> Sat, 15 Dec 2012 17:06:02 -0500 Parents: 6a9b1139665ed875901d05cf43b6ad842ea06818 Branches: master
Link: http://git.php.net/?p=web/master.git;a=commitdiff;h=91e2502e2a8634ea06b739437e40bb782e3ef4d9 Log: Reverting wrong fix for previous page exception. I forgot that the page starts from 0. This should work. Changed paths: M manage/user-notes.php Diff: diff --git a/manage/user-notes.php b/manage/user-notes.php index 7761ecf..9591c24 100644 --- a/manage/user-notes.php +++ b/manage/user-notes.php @@ -92,7 +92,6 @@ if (!$action) { $limit = $page * 10; $page++; $limitVotes = $NextPage * 25; $NextPage++; $PrevPage = ($NextPage - 2) > -1 ? $NextPage - 2 : 0; - if ($NextPage == 2) $PrevPage = 1; /* Added new voting information to be included in note from votes table. */ /* First notes */ @@ -286,7 +285,7 @@ if (!$action) { echo "<p><a href=\"?view=1&page=$page&type=$type\">Next 10</a>"; } elseif (isset($_REQUEST["view"]) && !empty($search_votes)) { echo "<p>"; - if (isset($PrevPage) && $PrevPage) { + if (isset($NextPage) && $NextPage > 0) { echo "<a href=\"?view=1&page=$PrevPage&type=$type{$isSearch}\">< Prev 25</a> "; } if (isset($to) && isset($resultCount) && $to < $resultCount) { -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
