Index: trunk/phase3/includes/Pager.php |
— | — | @@ -195,7 +195,8 @@ |
196 | 196 | $numRows = $res->numRows(); |
197 | 197 | if ( $numRows ) { |
198 | 198 | # Remove any table prefix from index field |
199 | | - $indexColumn = end( explode( '.', $this->mIndexField ) ); |
| 199 | + $parts = explode( '.', $this->mIndexField ); |
| 200 | + $indexColumn = end( $parts ); |
200 | 201 | |
201 | 202 | $row = $res->fetchRow(); |
202 | 203 | $firstIndex = $row[$indexColumn]; |