]> git.mxchange.org Git - mailer.git/blobdiff - inc/email-functions.php
Opps
[mailer.git] / inc / email-functions.php
index d854a993ad655baa404b108be27f2450aff5da7c..e0cf2a251e3889e9ddeb2fcb8ba1c0ac42245c37 100644 (file)
@@ -59,7 +59,7 @@ function sendEmail ($toEmail, $subject, $message, $isHtml = 'N', $mailHeader = '
                        // Set webmaster
                        $toEmail = getWebmaster();
                }
-       } elseif ($toEmail == '0') {
+       } elseif (($toEmail == '0') || (is_null($toEmail))) {
                // Is the webmaster!
                $toEmail = getWebmaster();
        }