A correction in the internationalization library.

skala
Ivan Tcholakov 16 years ago
parent 5e0b274144
commit e4ce4078f5
  1. 2
      main/inc/lib/internationalization_internal.lib.php

@ -595,7 +595,7 @@ function _api_utf8_chr($codepoint) {
* Note about a difference with the original funtion ord(): ord('') returns 0.
*/
function _api_utf8_ord($utf8_character) {
if (empty($utf8_character)) {
if ($utf8_character == '') {
return 0xFFFD;
}
$codepoints = _api_utf8_to_unicode($utf8_character);

Loading…
Cancel
Save