Braces and spaces
[lhc/web/wiklou.git] / maintenance / initEditCount.php
index 6c8f4e7..3ca067c 100644 (file)
@@ -44,7 +44,7 @@ in $wgDBservers, usually indicating a replication environment.' );
 
                // Autodetect mode...
                $backgroundMode = count( $wgDBservers ) > 1 ||
-                       ( $dbw instanceof DatabaseMySql && version_compare( $dbver, '4.1' ) < 0 );
+                       ( $dbw instanceof DatabaseMysql && version_compare( $dbver, '4.1' ) < 0 );
        
                if ( $this->hasOption( 'background' ) ) {
                        $backgroundMode = true;
@@ -80,7 +80,6 @@ in $wgDBservers, usually indicating a replication environment.' );
                                                __METHOD__ );
                                        ++$migrated;
                                }
-                               $dbr->freeResult( $result );
 
                                $delta = microtime( true ) - $start;
                                $rate = ( $delta == 0.0 ) ? 0.0 : $migrated / $delta;