From: David Causse Date: Mon, 19 Dec 2016 17:37:01 +0000 (+0100) Subject: Do not exit the run method in case of a missing rev X-Git-Tag: 1.31.0-rc.0~4515 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/Category:Foo?a=commitdiff_plain;h=99a20f06d7ee2adb9319352792586cb9da91355d;p=lhc%2Fweb%2Fwiklou.git 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 --- 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 ) {