From: Sam Reed Date: Tue, 13 Dec 2011 16:57:02 +0000 (+0000) Subject: Fix: X-Git-Tag: 1.31.0-rc.0~25999 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=d4c27f5c0bdd68b6b56a8e4bfe9dfa1a538d4af2;p=lhc%2Fweb%2Fwiklou.git Fix: PHP Notice: Undefined property: stdClass::$ar_sha1 in Revision.php on line 127 --- 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