summaryrefslogtreecommitdiff
path: root/inc/utf8.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2005-11-08 20:50:13 +0100
committerAndreas Gohr <andi@splitbrain.org>2005-11-08 20:50:13 +0100
commitf949a01c56e1f2c993e6b1f04ad3d57c382b6b06 (patch)
tree6742f2aca249c2f5f8b33dced3ded8f164ccfa2d /inc/utf8.php
parent75bfc19c4fec0d9ec349df05c30bbd95e459a5ba (diff)
downloadrpg-f949a01c56e1f2c993e6b1f04ad3d57c382b6b06.tar.gz
rpg-f949a01c56e1f2c993e6b1f04ad3d57c382b6b06.tar.bz2
fixed two bugs reported by Timo Falk
darcs-hash:20051108195013-7ad00-f2b2b6d955e64fe2d2abfc1d9421ed619f70abd3.gz
Diffstat (limited to 'inc/utf8.php')
-rw-r--r--inc/utf8.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/inc/utf8.php b/inc/utf8.php
index 3c1f361f7..64100f658 100644
--- a/inc/utf8.php
+++ b/inc/utf8.php
@@ -409,11 +409,8 @@ 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;
- }
+ if (!is_array($str)) return '';
+
$utf8 = '';
foreach( $str as $unicode ) {
if ( $unicode < 128 ) {