Fix Multibyte::strtolower()

This commit is contained in:
Koji Tanaka 2018-01-17 23:02:13 +09:00
parent aa14c68497
commit 7099c9d513

View file

@ -554,7 +554,7 @@ class Multibyte {
if (!empty($keys)) {
foreach ($keys as $key => $value) {
if ($keys[$key]['upper'] == $char && count($keys[$key]['lower'][0]) === 1) {
if ($keys[$key]['upper'] == $char && count($keys[$key]['lower']) > 0) {
$lowerCase[] = $keys[$key]['lower'][0];
$matched = true;
break 1;