From 494552c8392eb0577d499b72219eb002d7fd1015 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Mon, 24 Mar 2014 12:24:45 -0700 Subject: [PATCH] Followup af4085a: reset $prev interwiki to null in between result sets Change-Id: Ie2ba7b061e532e0ab749b0519a7e72bc018a1b5a --- includes/specials/SpecialSearch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/specials/SpecialSearch.php b/includes/specials/SpecialSearch.php index ed3857bd2c..aea8f17986 100644 --- a/includes/specials/SpecialSearch.php +++ b/includes/specials/SpecialSearch.php @@ -753,12 +753,12 @@ class SpecialSearch extends SpecialPage { } } - $prev = null; if ( !is_array( $matches ) ) { $matches = array( $matches ); } foreach ( $matches as $set ) { + $prev = null; $result = $set->next(); while ( $result ) { $out .= $this->showInterwikiHit( $result, $prev, $query, $customCaptions ); -- 2.20.1