array_key_exists is clearer here

This commit is contained in:
Marcus Bointon 2020-10-13 12:25:21 +02:00
parent 9209642ca6
commit 282f0fc0ce
No known key found for this signature in database
GPG Key ID: DE31CD6EB646AA24
1 changed files with 1 additions and 1 deletions

View File

@ -2117,7 +2117,7 @@ class PHPMailer
'am' => 'hy',
];
if (isset($renamed_langcodes[$langcode])) {
if (array_key_exists($langcode, $renamed_langcodes)) {
$langcode = $renamed_langcodes[$langcode];
}