From 3b1507bc7bbfc0fbcabda6a5f5185be1db06b09a Mon Sep 17 00:00:00 2001 From: halex Date: Tue, 31 Jul 2007 07:54:07 +0000 Subject: [PATCH] Users without a valid From name doesn't crash the composer anymore. This really doesn't fix any 'problem' with prefs, more of a workaround. --- src/www/js/Mail.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/www/js/Mail.js b/src/www/js/Mail.js index ca36922..ed85571 100644 --- a/src/www/js/Mail.js +++ b/src/www/js/Mail.js @@ -102,7 +102,7 @@ Dragonfly.Mail.Preferences.getFromAddress = function () var d = Dragonfly; var p = d.Preferences; - var emailfrom = p.prefs.mail.from; + var emailfrom = p.prefs.mail.from || ''; var namefrom = p.prefs.mail.sender; return d.format("{0} <{1}>", namefrom, emailfrom);