Fix undefined vars. in modules/marketing.php, check why $emails was used instead...
authorx2004lefloch <x2004lefloch@839d8a87-29fc-0310-9880-83ba4fa771e5>
Mon, 6 Aug 2007 12:11:16 +0000 (12:11 +0000)
committerx2004lefloch <x2004lefloch@839d8a87-29fc-0310-9880-83ba4fa771e5>
Mon, 6 Aug 2007 12:11:16 +0000 (12:11 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1907 839d8a87-29fc-0310-9880-83ba4fa771e5

include/marketing.inc.php
modules/marketing.php

index a339842..a49b4aa 100644 (file)
@@ -70,6 +70,8 @@ class Marketing
 
     private function getFrom($from, $sender)
     {
+        global $globals;
+        
         if ($from == 'staff') {
             return '"Equipe Polytechnique.org" <register@' . $globals->mail->domain . '>';
         } else {
index bbf9808..70d0c12 100644 (file)
@@ -261,7 +261,7 @@ class MarketingModule extends PLModule
             if (Post::has('valide')) {
                 require_once('xorg.misc.inc.php');
                 $email = trim(Post::v('mail'));
-                $market = Marketing::get($uid, $emails);
+                $market = Marketing::get($uid, $email);
                 if (!isvalid_email_redirection($email)) {
                     $page->trig("Email invalide !");
                 } elseif ($market) {