fix an updater check for ResultWrapper usage
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 6 Jul 2007 15:52:47 +0000 (15:52 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 6 Jul 2007 15:52:47 +0000 (15:52 +0000)
maintenance/updaters.inc

index a557659..0bbbd2b 100644 (file)
@@ -354,7 +354,7 @@ function do_logging_encoding() {
                return;
        $logging = $wgDatabase->tableName( 'logging' );
        $res = $wgDatabase->query( "SELECT log_title FROM $logging LIMIT 0" );
-       $flags = explode( ' ', mysql_field_flags( $res, 0 ) );
+       $flags = explode( ' ', mysql_field_flags( $res->result, 0 ) );
        $wgDatabase->freeResult( $res );
 
        if( in_array( 'binary', $flags ) ) {