From 99a20f06d7ee2adb9319352792586cb9da91355d Mon Sep 17 00:00:00 2001 From: David Causse Date: Mon, 19 Dec 2016 18:37:01 +0100 Subject: [PATCH] Do not exit the run method in case of a missing rev We should ignore broken/missing titles and not stop the whole process. Change-Id: Ib4acb739c28c5f3278430b43b6304af3a513085e --- includes/api/ApiQuerySearch.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/api/ApiQuerySearch.php b/includes/api/ApiQuerySearch.php index 349ec9de47..05b693d552 100644 --- a/includes/api/ApiQuerySearch.php +++ b/includes/api/ApiQuerySearch.php @@ -171,7 +171,8 @@ class ApiQuerySearch extends ApiQueryGeneratorBase { // Silently skip broken and missing titles if ( $result->isBrokenTitle() || $result->isMissingRevision() ) { - return null; + $result = $matches->next(); + continue; } if ( $resultPageSet === null ) { -- 2.20.1