Skip to content

Commit b590a17

Browse files
committed
Internal: Fix warning and error with php8
1 parent 02fae33 commit b590a17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main/inc/lib/internationalization.lib.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1156,7 +1156,7 @@ function api_utf8_encode($string, $from_encoding = 'UTF-8')
11561156
*
11571157
* @see http://php.net/manual/en/function.utf8-decode
11581158
*/
1159-
function api_utf8_decode($string, $to_encoding = null)
1159+
function api_utf8_decode($string, $to_encoding = 'UTF-8')
11601160
{
11611161
return mb_convert_encoding($string, $to_encoding, 'UTF-8');
11621162
}
@@ -1176,7 +1176,7 @@ function api_utf8_decode($string, $to_encoding = null)
11761176
*
11771177
* @return string returns the converted string
11781178
*/
1179-
function api_to_system_encoding($string, $from_encoding = null, $check_utf8_validity = false)
1179+
function api_to_system_encoding($string, $from_encoding = 'UTF-8', $check_utf8_validity = false)
11801180
{
11811181
$system_encoding = api_get_system_encoding();
11821182

0 commit comments

Comments
 (0)