Skip to content

Commit

Permalink
Fix already defined function
Browse files Browse the repository at this point in the history
  • Loading branch information
rastislav-chynoransky committed Aug 28, 2024
1 parent d132d19 commit df9ec20
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/Helpers/general.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit df9ec20

Please sign in to comment.