Skip to content

Commit

Permalink
Internal: Fix warning and error with php8
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoDucou committed Dec 11, 2024
1 parent 02fae33 commit b590a17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/inc/lib/internationalization.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1156,7 +1156,7 @@ function api_utf8_encode($string, $from_encoding = 'UTF-8')
*
* @see http://php.net/manual/en/function.utf8-decode
*/
function api_utf8_decode($string, $to_encoding = null)
function api_utf8_decode($string, $to_encoding = 'UTF-8')
{
return mb_convert_encoding($string, $to_encoding, 'UTF-8');
}
Expand All @@ -1176,7 +1176,7 @@ function api_utf8_decode($string, $to_encoding = null)
*
* @return string returns the converted string
*/
function api_to_system_encoding($string, $from_encoding = null, $check_utf8_validity = false)
function api_to_system_encoding($string, $from_encoding = 'UTF-8', $check_utf8_validity = false)
{
$system_encoding = api_get_system_encoding();

Expand Down

0 comments on commit b590a17

Please sign in to comment.