* (bug 31007) Fix regression in rebuildrecentchanges maintenance script
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 19 Sep 2011 20:00:49 +0000 (20:00 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 19 Sep 2011 20:00:49 +0000 (20:00 +0000)
Was trying to save literal string 'NULL' into rc_old_len / rc_new_len fields due to a bug switching to database query builder methods in r77778.

maintenance/rebuildrecentchanges.php

index 8964d1a..5cacac6 100644 (file)
@@ -132,7 +132,6 @@ class RebuildRecentchanges extends Maintenance {
                        } else {
                                # Grab the entry's text size
                                $size = $dbw->selectField( 'revision', 'rev_len', array( 'rev_id' => $obj->rc_this_oldid ) );
-                               $size = !is_null( $size ) ? intval( $size ) : 'NULL';
 
                                $dbw->update( 'recentchanges',
                                        array(