From: Roan Kattouw Date: Sun, 21 Dec 2008 22:35:52 +0000 (+0000) Subject: (bug 16748) Null revisions are stored in the DB with rev_len=NULL. Patch by Paul... X-Git-Tag: 1.31.0-rc.0~43846 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=f072eb2d9506a96e0448cb04e6878530ca7f3db2;p=lhc%2Fweb%2Fwiklou.git (bug 16748) Null revisions are stored in the DB with rev_len=NULL. Patch by Paul Copperman --- 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;