Properly check that the port key is present
authorDavid Causse <dcausse@wikimedia.org>
Wed, 7 Jun 2017 16:46:42 +0000 (18:46 +0200)
committerDavid Causse <dcausse@wikimedia.org>
Wed, 7 Jun 2017 16:46:42 +0000 (18:46 +0200)
Bug: T167301
Change-Id: I009c3d8e5805ddd2b75640ba582a648663c72b47

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( [