dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* batch change for "while ( $row = $db->fetchObject( $res ) )" and similar to "foreac...
[lhc/web/wiklou.git]
/
maintenance
/
dumpLinks.php
diff --git
a/maintenance/dumpLinks.php
b/maintenance/dumpLinks.php
index
1cb70d0
..
529cd1a
100644
(file)
--- a/
maintenance/dumpLinks.php
+++ b/
maintenance/dumpLinks.php
@@
-51,7
+51,7
@@
class DumpLinks extends Maintenance {
array( 'ORDER BY' => 'page_id' ) );
$lastPage = null;
-
while( $row = $dbr->fetchObject( $result )
) {
+
foreach( $result as $row
) {
if( $lastPage != $row->page_id ) {
if( isset( $lastPage ) ) {
$this->output( "\n" );