From ee750cc65634ac17a214f547f26f8e5dba5769a9 Mon Sep 17 00:00:00 2001 From: David Causse Date: Fri, 13 Jul 2018 11:25:10 +0200 Subject: [PATCH] [PageArchive] Fetch ar_rev_id instead of ar_id Introduced in I92afda8, the query fetches ar_id but the code expects ar_rev_id. Change-Id: I4e2031f96257449a264142a6d697aca802e897df --- includes/page/PageArchive.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/page/PageArchive.php b/includes/page/PageArchive.php index fc079e260d..aa34dd24c2 100644 --- a/includes/page/PageArchive.php +++ b/includes/page/PageArchive.php @@ -329,7 +329,7 @@ class PageArchive { // Check the previous deleted revision... $row = $dbr->selectRow( 'archive', - [ 'ar_id', 'ar_timestamp' ], + [ 'ar_rev_id', 'ar_timestamp' ], [ 'ar_namespace' => $this->title->getNamespace(), 'ar_title' => $this->title->getDBkey(), 'ar_timestamp < ' . -- 2.20.1