(bug 13576) maintenance/rebuildrecentchanges.php fails
authorHuji <huji@users.mediawiki.org>
Tue, 1 Apr 2008 13:44:36 +0000 (13:44 +0000)
committerHuji <huji@users.mediawiki.org>
Tue, 1 Apr 2008 13:44:36 +0000 (13:44 +0000)
RELEASE-NOTES
maintenance/rebuildrecentchanges.inc

index 0363d66..a6338f2 100644 (file)
@@ -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 ===
 
index c9a5e43..7686646 100644 (file)
@@ -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;