From: Brion Vibber Date: Mon, 19 Sep 2011 20:00:49 +0000 (+0000) Subject: * (bug 31007) Fix regression in rebuildrecentchanges maintenance script X-Git-Tag: 1.31.0-rc.0~27551 X-Git-Url: http://git.cyclocoop.org/%22.%28%24lien.?a=commitdiff_plain;h=ac49ca09b6d73156ea0bab427417b977e0d0f9dd;p=lhc%2Fweb%2Fwiklou.git * (bug 31007) Fix regression in rebuildrecentchanges maintenance script 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. --- diff --git a/maintenance/rebuildrecentchanges.php b/maintenance/rebuildrecentchanges.php index 8964d1a4ce..5cacac6577 100644 --- a/maintenance/rebuildrecentchanges.php +++ b/maintenance/rebuildrecentchanges.php @@ -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(