Fixed: Getting warnings and deprecated error while trying to importing with enabling (ISO 8859-1 encoded file) the room type CVS

This commit is contained in:
Amit sharma
2025-12-10 17:11:26 +05:30
parent 41f97a6b9e
commit 82a7e7fd2c

View File

@@ -3223,7 +3223,11 @@ class AdminImportControllerCore extends AdminController
public function utf8EncodeArray($array)
{
return (is_array($array) ? array_map('utf8_encode', $array) : mb_convert_encoding($array, 'UTF-8', 'ISO-8859-1'));
return is_array($array)
? array_map(function ($item) {
return mb_convert_encoding($item, 'UTF-8', 'ISO-8859-1');
}, $array)
: mb_convert_encoding($array, 'UTF-8', 'ISO-8859-1');
}
protected function getNbrColumn($handle, $glue)