From 5967e1b4e19e7cee5e3861880d1783aeda2921aa Mon Sep 17 00:00:00 2001 From: lkehresman Date: Mon, 14 Aug 2000 17:31:58 +0000 Subject: [PATCH] if from = "" it now displays the address. Previously it was blank. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@710 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_general.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/functions/imap_general.php b/functions/imap_general.php index 6e1b80a4..c390e13a 100755 --- a/functions/imap_general.php +++ b/functions/imap_general.php @@ -234,6 +234,7 @@ ******************************************************************************/ function sqimap_find_displayable_name ($string) { $string = " ".trim($string); + $orig_string = $string; if (strpos($string, "<") && strpos($string, ">")) { if (strpos($string, "<") == 1) { $string = sqimap_find_email($string); @@ -242,6 +243,10 @@ $string = substr($string, 0, strpos($string, "<")); $string = ereg_replace ("\"", "", $string); } + + if (trim($string) == "") { + $string = sqimap_find_email($orig_string); + } } return $string; } -- 2.25.1