summaryrefslogtreecommitdiffstats
path: root/includes/emails.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/emails.php')
-rw-r--r--includes/emails.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/emails.php b/includes/emails.php
index 74658ad..7a54a89 100644
--- a/includes/emails.php
+++ b/includes/emails.php
@@ -81,11 +81,11 @@ function SendQueuedEmail() {
return true;
}
-function QueueEmail($fromUserID, $to, $subject, $body, $priority = 100, $fromServer = false) {
+function QueueEmail($fromUserID, $to, $subject, $body, $priority = 100) {
global $mysqli;
//TODO !! allow a way for users to refer-friends via email. Here.
- if ($fromServer == false) {
+ if ($fromUserID !== null) {
return false;
//Email tracker is not added !!
$res = $mysqli->query("SELECT `fromUserID` FROM emailTracker WHERE `fromUserID` = '$fromUserID'");