diff options
author | BlueRaja <BlueRaja.admin@gmail.com> | 2013-05-29 06:58:14 -0500 |
---|---|---|
committer | BlueRaja <BlueRaja.admin@gmail.com> | 2013-05-29 06:58:14 -0500 |
commit | 550a14a669ca4271db64856ff7c7ce376fc2cd34 (patch) | |
tree | 09ec13ba6e09906aaded8d97a27205075ac6a879 /includes/emails.php | |
parent | 4a7b4e549fbbdb81aea8d837685ff83e0391ba86 (diff) | |
download | pathery-550a14a669ca4271db64856ff7c7ce376fc2cd34.tar.xz |
Set up foreign keys within the database. There is a small chance I may have broken emails, unlocks, or chat. Will test :)
Diffstat (limited to 'includes/emails.php')
-rw-r--r-- | includes/emails.php | 4 |
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'");
|