diff options
author | wn_ <[email protected]> | 2022-08-12 18:21:38 +0000 |
---|---|---|
committer | wn_ <[email protected]> | 2022-08-12 18:21:38 +0000 |
commit | c301053965004f43408545f4b80cf444ce6a9587 (patch) | |
tree | 8a7ea219a065bceee9924553d4003806d0f5c1fd /include | |
parent | 3487c922b3f34449fecdddebe1fd2ee3b8c42e65 (diff) |
Use the null coalescing assignment operator in various places.
Diffstat (limited to 'include')
-rw-r--r-- | include/functions.php | 3 |
1 files changed, 1 insertions, 2 deletions
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) |