Fixed #10136: tslib_pibase page browser may hurt search engines by the incorrect...
authorBenni Mack <benni.mack@typo3.org>
Sun, 28 Jun 2009 11:19:39 +0000 (11:19 +0000)
committerBenni Mack <benni.mack@typo3.org>
Sun, 28 Jun 2009 11:19:39 +0000 (11:19 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-2@5650 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/class.tslib_pibase.php

index a30fbec..de79b48 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-06-28  Benjamin Mack  <benni@typo3.org>
+
+       * Fixed #10136: tslib_pibase page browser may hurt search engines by the incorrect "Next" link (On behalf of Dmitry Dulepov)
+
 2009-06-23  Michael Stucki  <michael@typo3.org>
 
        * Fixed bug #11369: jumpUrl should only allow files matching fileDenyPattern (thanks to Ingmar Schlecht)
index e2488b0..8adb448 100755 (executable)
@@ -548,7 +548,7 @@ class tslib_pibase {
                                }
                        }
                        if ($pointer<$totalPages-1 || $showFirstLast)   {
-                               if ($pointer==$totalPages-1) { // Link to next page
+                               if ($pointer>=$totalPages-1) { // Link to next page
                                        $links[]=$this->cObj->wrap($this->pi_getLL('pi_list_browseresults_next','Next >',$hscText),$wrapper['disabledLinkWrap']);
                                } else {
                                        $links[]=$this->cObj->wrap($this->pi_linkTP_keepPIvars($this->pi_getLL('pi_list_browseresults_next','Next >',$hscText),array($pointerName => $pointer+1),$pi_isOnlyFields),$wrapper['inactiveLinkWrap']);