From: David Causse Date: Wed, 7 Jun 2017 16:46:42 +0000 (+0200) Subject: Properly check that the port key is present X-Git-Tag: 1.31.0-rc.0~3032^2 X-Git-Url: http://git.cyclocoop.org/%22%20%20.%20generer_url_ecrire%28%22mots_tous%22%29%20.%20%22?a=commitdiff_plain;h=9f24c73773b592b50b1967f2189f9484c528f19c;p=lhc%2Fweb%2Fwiklou.git Properly check that the port key is present Bug: T167301 Change-Id: I009c3d8e5805ddd2b75640ba582a648663c72b47 --- diff --git a/includes/widget/search/InterwikiSearchResultSetWidget.php b/includes/widget/search/InterwikiSearchResultSetWidget.php index 6d942de1ab..11f93642e6 100644 --- a/includes/widget/search/InterwikiSearchResultSetWidget.php +++ b/includes/widget/search/InterwikiSearchResultSetWidget.php @@ -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( [