From bd1dd6ce60bdcfeb77d7d3e26da3f5854eab22b4 Mon Sep 17 00:00:00 2001 From: nguyenanhung Date: Fri, 16 Jun 2023 11:21:27 +0700 Subject: [PATCH] fixed v3.2.0 --- helpers/common.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/helpers/common.php b/helpers/common.php index fe1caaa..ed54b17 100644 --- a/helpers/common.php +++ b/helpers/common.php @@ -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'); } @@ -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'); } @@ -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); }