diff options
Diffstat (limited to 'inc/utf8.php')
-rw-r--r-- | inc/utf8.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/inc/utf8.php b/inc/utf8.php index 7e82e7cd2..3c1f361f7 100644 --- a/inc/utf8.php +++ b/inc/utf8.php @@ -409,6 +409,11 @@ function utf8_to_unicode( &$str ) { * @see utf8_to_unicode() */ function unicode_to_utf8( &$str ) { + // init_getID_test causes something to get + // passed to this function that isn't a string + if ( !is_string($str) ) { + return; + } $utf8 = ''; foreach( $str as $unicode ) { if ( $unicode < 128 ) { |