From c4eca3142efa825f3c30323e3cfe7235fd293eb6 Mon Sep 17 00:00:00 2001 From: "Pierre Habouzit (MadCoder" Date: Tue, 11 Jan 2005 16:42:04 +0000 Subject: [PATCH] ooops git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-291 --- include/marketing.inc.php | 1 + include/validations/marketing.inc.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/marketing.inc.php b/include/marketing.inc.php index b4522b1..8ff72d6 100644 --- a/include/marketing.inc.php +++ b/include/marketing.inc.php @@ -23,6 +23,7 @@ function mark_send_mail($uid, $email) { + global $globals; $hash = rand_url_id(12); $globals->xdb->execute('UPDATE register_marketing SET nb=nb+1,hash={?},last=NOW() WHERE uid={?} AND email={?}', $hash, $id, $email); diff --git a/include/validations/marketing.inc.php b/include/validations/marketing.inc.php index f2eed59..f8b797a 100644 --- a/include/validations/marketing.inc.php +++ b/include/validations/marketing.inc.php @@ -83,7 +83,7 @@ class MarkReq extends Validate { global $globals; require_once('marketing.inc.php'); - mark_send_mail(); + mark_send_mail($this->m_id, $this->m_email); return true; } -- 2.1.4