last(?) icy fix
authorteepe <teepe@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 19 Jan 2002 15:38:20 +0000 (15:38 +0000)
committerteepe <teepe@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 19 Jan 2002 15:38:20 +0000 (15:38 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2177 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/imap_general.php

index 21672e144ddc8048bb05bd6bba731711f021f7d7..df7fefe2f242393fd9dfd48576039f9f6d61ae97 100755 (executable)
@@ -363,6 +363,9 @@ function sqimap_find_displayable_name ($string) {
     
     if ( ereg('^(.+)<.*>', $string, $regs) ) {
         $string = ereg_replace ('"', '', $regs[1] );
+        if( $string == '' || $string == ' ' ){
+            $string = '&nbsp';
+        }
     }
     elseif ( ereg('\((.*)\)', $string, $regs) ) {
         if( ( $regs[1] == '' ) || ( $regs[1] == ' ' ) ){