From 2b630f91afa14fc676e198bae9e5ce01f6d626b3 Mon Sep 17 00:00:00 2001
From: garvinhicking <garvinhicking>
Date: Wed, 27 Jul 2005 18:06:18 +0000
Subject: [PATCH] Use proper mail address when empty. Fixesbug #1245963

---
 include/functions.inc.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/functions.inc.php b/include/functions.inc.php
index f2dc24f..5a250fe 100644
--- a/include/functions.inc.php
+++ b/include/functions.inc.php
@@ -209,7 +209,7 @@ function serendipity_sendMail($to, $subject, $message, $fromMail, $headers = NUL
         $fromName = $serendipity['blogTitle'];
     }
 
-    if ( is_null($fromMail) ) {
+    if ( is_null($fromMail) || empty($fromMail)) {
         $fromMail = $to;
     }
 
-- 
2.39.5