From 8082e179ff53c52763b09a084101eac03c302fb5 Mon Sep 17 00:00:00 2001 From: Lucas Werkmeister Date: Tue, 29 Mar 2022 11:59:52 +0200 Subject: [PATCH] Use null coalescing operator MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To hide warnings if the 'svg' or 'icon' keys don’t exist. Bug: T304917 Change-Id: I12c13615f160f1a889b469ef6e4e7561de121d92 --- includes/TimelessTemplate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/TimelessTemplate.php b/includes/TimelessTemplate.php index 43b691d..7637fb1 100644 --- a/includes/TimelessTemplate.php +++ b/includes/TimelessTemplate.php @@ -532,7 +532,7 @@ class TimelessTemplate extends BaseTemplate { if ( $part !== 'text' ) { $logoImage = $this->getLogoImage( $config->get( 'TimelessLogo' ) ); if ( $logoImage === false ) { - $logoSrc = $logos['svg'] ?: $logos['icon'] ?: ''; + $logoSrc = $logos['svg'] ?? $logos['icon'] ?? ''; if ( $logoSrc !== '' ) { $logoImage = Html::element( 'img', [ 'src' => $logoSrc,