Heacy rewrite/cleanup:
[mailer.git] / inc / email-functions.php
index 7731595ae4163e39aa19ea5a535ab6a2ecd3002e..3663ca4ce8e49d03d6638666ae0a7aeff02b0a07 100644 (file)
@@ -50,7 +50,7 @@ function sendEmail ($toEmail, $subject, $message, $isHtml = 'N', $mailHeader = '
        } // END - if
 
        // Set from header
-       if ((!isInString('@', $toEmail)) && ($toEmail > 0)) {
+       if ((!isInString('@', $toEmail)) && (isValidId($toEmail))) {
                // Does the user exist?
                if ((isExtensionActive('user')) && (fetchUserData($toEmail))) {
                        // Get the email