Fixes a SQL 'typo' in /marketing/broken.
authorVincent Zanotti <vincent.zanotti@polytechnique.org>
Mon, 16 Jun 2008 01:37:01 +0000 (03:37 +0200)
committerVincent Zanotti <vincent.zanotti@polytechnique.org>
Mon, 16 Jun 2008 01:37:01 +0000 (03:37 +0200)
Signed-off-by: Vincent Zanotti <vincent.zanotti@polytechnique.org>
modules/marketing.php

index 5c52a44..83dcd89 100644 (file)
@@ -201,7 +201,7 @@ class MarketingModule extends PLModule
         if (Post::has('valide') && isvalid_email_redirection($email)) {
             // security stuff
             check_email($email, "Proposition d'une adresse surveillee pour " . $user['forlife'] . " par " . S::v('forlife'));
-            $res = XDB::query("SELECT  state
+            $res = XDB::query("SELECT  e.flags
                                  FROM  emails   AS e
                            INNER JOIN  aliases  AS a ON (a.id = e.uid)
                                 WHERE  e.email = {?} AND a.alias = {?}", $email, $user['forlife']);