Skip to content

Commit

Permalink
Fix Multibyte::strtolower()
Browse files Browse the repository at this point in the history
  • Loading branch information
tenkoma committed Jan 17, 2018
1 parent aa14c68 commit 7099c9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/I18n/Multibyte.php
Expand Up @@ -554,7 +554,7 @@ public static function strtolower($string) {

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;
Expand Down

0 comments on commit 7099c9d

Please sign in to comment.