jenkins-bot has submitted this change and it was merged.

Change subject: add missing ResultSet::hasInterwikiResults implementation
......................................................................


add missing ResultSet::hasInterwikiResults implementation

Change-Id: I7c1bd782063f82ec2980fb11f45f7e106d749416
---
M includes/Search/ResultSet.php
1 file changed, 5 insertions(+), 1 deletion(-)

Approvals:
  EBernhardson: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/Search/ResultSet.php b/includes/Search/ResultSet.php
index de21989..0c0ab64 100644
--- a/includes/Search/ResultSet.php
+++ b/includes/Search/ResultSet.php
@@ -179,7 +179,11 @@
        }
 
        public function getInterwikiResults( $type = 
SearchResultSet::SECONDARY_RESULTS ) {
-               return isset($this->interwikiResults[$type])? 
$this->interwikiResults[$type] : array();
+               return isset($this->interwikiResults[$type]) ? 
$this->interwikiResults[$type] : array();
+       }
+
+       public function hasInterwikiResults( $type = 
SearchResultSet::SECONDARY_RESULTS ) {
+               return isset($this->interwikiResults[$type]);
        }
 
        public function searchContainedSyntax() {

-- 
To view, visit https://gerrit.wikimedia.org/r/249046
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I7c1bd782063f82ec2980fb11f45f7e106d749416
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CirrusSearch
Gerrit-Branch: master
Gerrit-Owner: EBernhardson <[email protected]>
Gerrit-Reviewer: Chad <[email protected]>
Gerrit-Reviewer: DCausse <[email protected]>
Gerrit-Reviewer: EBernhardson <[email protected]>
Gerrit-Reviewer: Manybubbles <[email protected]>
Gerrit-Reviewer: Smalyshev <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to