From: Pierre Habouzit (MadCoder Date: Tue, 11 Jan 2005 16:42:04 +0000 (+0000) Subject: ooops X-Git-Tag: xorg/old~465 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=c4eca3142efa825f3c30323e3cfe7235fd293eb6;p=platal.git ooops git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-291 --- 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; }