From 799cdbcdfea53397d3bde1b145cdc018d21d6f5a Mon Sep 17 00:00:00 2001 From: x2004lefloch Date: Mon, 6 Aug 2007 12:11:16 +0000 Subject: [PATCH] Fix undefined vars. in modules/marketing.php, check why $emails was used instead of $email git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1907 839d8a87-29fc-0310-9880-83ba4fa771e5 --- include/marketing.inc.php | 2 ++ modules/marketing.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/marketing.inc.php b/include/marketing.inc.php index a339842..a49b4aa 100644 --- a/include/marketing.inc.php +++ b/include/marketing.inc.php @@ -70,6 +70,8 @@ class Marketing private function getFrom($from, $sender) { + global $globals; + if ($from == 'staff') { return '"Equipe Polytechnique.org" mail->domain . '>'; } else { diff --git a/modules/marketing.php b/modules/marketing.php index bbf9808..70d0c12 100644 --- a/modules/marketing.php +++ b/modules/marketing.php @@ -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) { -- 2.1.4