diff --git a/app/Helpers/general.php b/app/Helpers/general.php index 34bc1dcb7..12e7ad3f3 100644 --- a/app/Helpers/general.php +++ b/app/Helpers/general.php @@ -140,9 +140,11 @@ function utrans($str) return mb_ucfirst(trans($str)); } -function mb_ucfirst($str) { - $str = mb_strtoupper(mb_substr($str, 0, 1)) . mb_substr($str, 1); - return $str; +if (!function_exists('mb_ucfirst')) { + function mb_ucfirst($str) { + $str = mb_strtoupper(mb_substr($str, 0, 1)) . mb_substr($str, 1); + return $str; + } } function isValidURL($url)