From: Chad Horohoe Date: Mon, 24 Mar 2014 19:24:45 +0000 (-0700) Subject: Followup af4085a: reset $prev interwiki to null in between result sets X-Git-Tag: 1.31.0-rc.0~16516 X-Git-Url: http://git.cyclocoop.org/%24dirpuce/puce%24spip_lang_rtl.gif?a=commitdiff_plain;h=494552c8392eb0577d499b72219eb002d7fd1015;p=lhc%2Fweb%2Fwiklou.git Followup af4085a: reset $prev interwiki to null in between result sets Change-Id: Ie2ba7b061e532e0ab749b0519a7e72bc018a1b5a --- 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 );