ooops
authorPierre Habouzit (MadCoder <pierre.habouzit@m4x.org>
Tue, 11 Jan 2005 16:42:04 +0000 (16:42 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:27:27 +0000 (23:27 +0200)
git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-291

include/marketing.inc.php
include/validations/marketing.inc.php

index b4522b1..8ff72d6 100644 (file)
@@ -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);
index f2eed59..f8b797a 100644 (file)
@@ -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;
     }