* batch change for "while ( $row = $db->fetchObject( $res ) )" and similar to "foreac...
[lhc/web/wiklou.git] / maintenance / dumpLinks.php
index 1cb70d0..529cd1a 100644 (file)
@@ -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" );