X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FMagicWordArray.php;h=707c644a8d0b20e74c07d5b7002683a018cd3e77;hb=c56c68cb67a40801f718a60463be48e4cf5ea9e3;hp=fde32ce4fd6a6b90833d7de93c5fada98a03df55;hpb=15f6eff90c305d405fe4331c8a8dc8caa842e5b3;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/MagicWordArray.php b/includes/MagicWordArray.php index fde32ce4fd..707c644a8d 100644 --- a/includes/MagicWordArray.php +++ b/includes/MagicWordArray.php @@ -268,10 +268,7 @@ class MagicWordArray { return $hash[1][$text]; } $lc = $this->factory->getContentLanguage()->lc( $text ); - if ( isset( $hash[0][$lc] ) ) { - return $hash[0][$lc]; - } - return false; + return $hash[0][$lc] ?? false; } /**