From 3ce2ffe40524a837054c45790088fb2404f050e1 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Mon, 12 Dec 2011 13:11:54 +0000 Subject: [PATCH] (bug 32984) ar_sha1 might not be set --- includes/Revision.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Revision.php b/includes/Revision.php index 3604b13541..ae081634d7 100644 --- a/includes/Revision.php +++ b/includes/Revision.php @@ -124,7 +124,7 @@ class Revision { 'text_id' => isset( $row->ar_text_id ) ? $row->ar_text_id : null, 'deleted' => $row->ar_deleted, 'len' => $row->ar_len, - 'sha1' => $row->ar_sha1 + 'sha1' => isset( $row->ar_sha1 ) ? $row->ar_sha1 : null, ); if ( isset( $row->ar_text ) && !$row->ar_text_id ) { // Pre-1.5 ar_text row -- 2.20.1