Followup af4085a: reset $prev interwiki to null in between result sets
authorChad Horohoe <chadh@wikimedia.org>
Mon, 24 Mar 2014 19:24:45 +0000 (12:24 -0700)
committerChad Horohoe <chadh@wikimedia.org>
Mon, 24 Mar 2014 19:24:45 +0000 (12:24 -0700)
Change-Id: Ie2ba7b061e532e0ab749b0519a7e72bc018a1b5a

includes/specials/SpecialSearch.php

index ed3857b..aea8f17 100644 (file)
@@ -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 );