From fc1c55b1830fbbb13f99db0490df4f46e15dcd31 Mon Sep 17 00:00:00 2001 From: hfuecks Date: Mon, 7 Nov 2005 00:38:00 +0100 Subject: get_tests_running_1 darcs-hash:20051106233800-e96b6-90328f1b6cc5c8b25c6e02f113cf80475789d297.gz --- inc/utf8.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'inc/utf8.php') 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 ) { -- cgit v1.2.3