Merge "Properly check that the port key is present"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Thu, 8 Jun 2017 10:15:54 +0000 (10:15 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 8 Jun 2017 10:15:55 +0000 (10:15 +0000)
includes/widget/search/InterwikiSearchResultSetWidget.php

index 6d942de..11f9364 100644 (file)
@@ -177,7 +177,7 @@ class InterwikiSearchResultSetWidget implements SearchResultSetWidget {
                $iwIconUrl = $parsed['scheme'] .
                        $parsed['delimiter'] .
                        $parsed['host'] .
-                       ( $parsed['port'] ? ':' . $parsed['port'] : '' ) .
+                       ( isset ( $parsed['port'] ) ? ':' . $parsed['port'] : '' ) .
                        '/favicon.ico';
 
                $iwIcon = new OOUI\IconWidget( [