From a65711ffc5d6528f6d39e24d41ce4f3561691c36 Mon Sep 17 00:00:00 2001 From: Huji Date: Tue, 1 Apr 2008 13:44:36 +0000 Subject: [PATCH] (bug 13576) maintenance/rebuildrecentchanges.php fails --- RELEASE-NOTES | 3 ++- maintenance/rebuildrecentchanges.inc | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 0363d66a99..a6338f2a97 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -59,6 +59,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * Image redirects are now enabled * (bug 13450) Email confirmation can now be canceled before the expiration * (bug 13490) Show upload/file size limit on upload form +* Redesign of Special:Userrights === Bug fixes in 1.13 === @@ -145,7 +146,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 13540) Date format in confirmation e-mail now matches message language * (bug 13554) PHP Notice in old pre-processor when list item is empty. * (bug 13556) Don't show a blank form if no image is attached in Special:Upload -* Redesign of Special:Userrights +* (bug 13576) maintenance/rebuildrecentchanges.php fails === API changes in 1.13 === diff --git a/maintenance/rebuildrecentchanges.inc b/maintenance/rebuildrecentchanges.inc index c9a5e43c93..76866467d2 100644 --- a/maintenance/rebuildrecentchanges.inc +++ b/maintenance/rebuildrecentchanges.inc @@ -87,6 +87,7 @@ function rebuildRecentChangesTablePass2() if( $row = $dbw->fetchObject( $res2 ) ) { $lastOldId = intval( $row->rev_id ); $lastSize = $row->rev_len; # Grab the last text size + if(!is_numeric($lastSize)) $lastSize = 'NULL'; # Set last text size to null if not available } else { # No previous edit $lastOldId = 0; -- 2.20.1