Skip to content

Commit

Permalink
Merge pull request #37 from nguyenanhung/v3.2.0-develop
Browse files Browse the repository at this point in the history
fixed v3.2.0
  • Loading branch information
nguyenanhung committed Jun 16, 2023
2 parents 3082f1f + bd1dd6c commit 333fa14
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions helpers/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ function codeigniter_hmvc_modules_list($with_location = true)
if (!function_exists('bear_str_to_lower')) {
function bear_str_to_lower($str)
{
if ($str === null) {
return null;
}
if (function_exists('mb_strtolower')) {
return mb_strtolower($str, 'UTF-8');
}
Expand All @@ -63,6 +66,9 @@ function bear_str_to_lower($str)
if (!function_exists('bear_str_to_upper')) {
function bear_str_to_upper($str)
{
if ($str === null) {
return null;
}
if (function_exists('mb_strtoupper')) {
return mb_strtoupper($str, 'UTF-8');
}
Expand All @@ -73,6 +79,9 @@ function bear_str_to_upper($str)
if (!function_exists('bear_str_length')) {
function bear_str_length($str)
{
if ($str === null) {
return null;
}
if (function_exists('mb_strlen')) {
return mb_strlen($str);
}
Expand Down

0 comments on commit 333fa14

Please sign in to comment.