Account for case when no reply-to is set in user prefs
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 9 Jan 2012 20:41:02 +0000 (20:41 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 9 Jan 2012 20:41:02 +0000 (20:41 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14265 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/compose.php

index e0e25eff7a2e80b160e33f5052f321fc332050ba..fb0a9c57f5af6233667736e6e71d4165b933c0b4 100644 (file)
@@ -1633,7 +1633,7 @@ function deliverMessage(&$composeMessage, $draft=false) {
 
     $reply_to = '';
     $reply_to  = $idents[$identity]['reply_to'];
-    if (strpos($reply_to, '@') === FALSE)
+    if ($reply_to && strpos($reply_to, '@') === FALSE)
         $reply_to .= '@' . $domain;
     
     $from_addr = build_from_header($identity);