From f072eb2d9506a96e0448cb04e6878530ca7f3db2 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Sun, 21 Dec 2008 22:35:52 +0000 Subject: [PATCH] (bug 16748) Null revisions are stored in the DB with rev_len=NULL. Patch by Paul Copperman --- includes/Revision.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/Revision.php b/includes/Revision.php index ab017f9c06..a6147ba0f9 100644 --- a/includes/Revision.php +++ b/includes/Revision.php @@ -906,7 +906,7 @@ class Revision { $current = $dbw->selectRow( array( 'page', 'revision' ), - array( 'page_latest', 'rev_text_id' ), + array( 'page_latest', 'rev_text_id', 'rev_len' ), array( 'page_id' => $pageId, 'page_latest=rev_id', @@ -919,7 +919,8 @@ class Revision { 'comment' => $summary, 'minor_edit' => $minor, 'text_id' => $current->rev_text_id, - 'parent_id' => $current->page_latest + 'parent_id' => $current->page_latest, + 'len' => $current->rev_len ) ); } else { $revision = null; -- 2.20.1