Index: trunk/phase3/includes/specials/SpecialShortpages.php |
— | — | @@ -72,11 +72,13 @@ |
73 | 73 | # the page must exist for it to have been pulled out of the table |
74 | 74 | if( $this->isCached() ) { |
75 | 75 | $batch = new LinkBatch(); |
76 | | - while( $row = $db->fetchObject( $res ) ) |
| 76 | + foreach ( $res as $row ) { |
77 | 77 | $batch->add( $row->namespace, $row->title ); |
| 78 | + } |
78 | 79 | $batch->execute(); |
79 | | - if( $db->numRows( $res ) > 0 ) |
| 80 | + if ( $db->numRows( $res ) > 0 ) { |
80 | 81 | $db->dataSeek( $res, 0 ); |
| 82 | + } |
81 | 83 | } |
82 | 84 | } |
83 | 85 | |