From 550a14a669ca4271db64856ff7c7ce376fc2cd34 Mon Sep 17 00:00:00 2001 From: BlueRaja Date: Wed, 29 May 2013 06:58:14 -0500 Subject: Set up foreign keys within the database. There is a small chance I may have broken emails, unlocks, or chat. Will test :) --- includes/emails.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/emails.php') 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'"); -- cgit v1.2.3