From c301053965004f43408545f4b80cf444ce6a9587 Mon Sep 17 00:00:00 2001 From: wn_ Date: Fri, 12 Aug 2022 18:21:38 +0000 Subject: Use the null coalescing assignment operator in various places. --- include/functions.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include') diff --git a/include/functions.php b/include/functions.php index 82e08ddb3..a7b15c165 100644 --- a/include/functions.php +++ b/include/functions.php @@ -108,8 +108,7 @@ $valid_langs[$lang] = $t; $lang = substr($lang, 0, 2); - if (!isset($valid_langs[$lang])) - $valid_langs[$lang] = $t; + $valid_langs[$lang] ??= $t; } // break up string into pieces (languages and q factors) -- cgit v1.2.3