summaryrefslogtreecommitdiff
path: root/inc/utf8.php
diff options
context:
space:
mode:
authorhfuecks <hfuecks@gmail.com>2005-11-07 00:38:00 +0100
committerhfuecks <hfuecks@gmail.com>2005-11-07 00:38:00 +0100
commitfc1c55b1830fbbb13f99db0490df4f46e15dcd31 (patch)
treec95e7c3ca97b6afcbc7fbda6300808ff46b089d8 /inc/utf8.php
parent4add97cbe7c3aae97c8c54fc6a3bd7fae1de29a2 (diff)
downloadrpg-fc1c55b1830fbbb13f99db0490df4f46e15dcd31.tar.gz
rpg-fc1c55b1830fbbb13f99db0490df4f46e15dcd31.tar.bz2
get_tests_running_1
darcs-hash:20051106233800-e96b6-90328f1b6cc5c8b25c6e02f113cf80475789d297.gz
Diffstat (limited to 'inc/utf8.php')
-rw-r--r--inc/utf8.php5
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 ) {