X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FPager.php;h=077430d27d3d00fdb828355d2f1671a8a32b43a9;hb=c2b3c1cf671d360910b6234da481c230bbe2a730;hp=96ba446e5517295b8c272509dc45737559c7e879;hpb=4e85a746a83123587225bd8b2c8d6a1c9ac39080;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Pager.php b/includes/Pager.php index 96ba446e55..077430d27d 100644 --- a/includes/Pager.php +++ b/includes/Pager.php @@ -287,8 +287,7 @@ abstract class IndexPager extends ContextSource implements Pager { if ( $numRows > $this->mLimit && $numRows > 1 ) { $res->seek( $numRows - 1 ); $this->mPastTheEndRow = $res->fetchObject(); - $indexField = $this->mIndexField; - $this->mPastTheEndIndex = $this->mPastTheEndRow->$indexField; + $this->mPastTheEndIndex = $this->mPastTheEndRow->$indexColumn; $res->seek( $numRows - 2 ); $row = $res->fetchRow(); $lastIndex = $row[$indexColumn];