X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fvalidations%2Fmarketing.inc.php;h=c0d270733ed0ba08e464076e631e72285a5f7be2;hb=75691c6015d22f2630ea2eefcad0e23f20b4c347;hp=53a5e751f77261aaf0842019697f76a75c4dfbea;hpb=5daf68f6846682e439570b5245a6109ada8d9304;p=platal.git diff --git a/include/validations/marketing.inc.php b/include/validations/marketing.inc.php index 53a5e75..c0d2707 100644 --- a/include/validations/marketing.inc.php +++ b/include/validations/marketing.inc.php @@ -1,6 +1,6 @@ m_user = $mark; + $this->m_user = &$mark; $this->m_email = $email; $this->perso = $perso; $this->m_type = $type; $this->m_data = $data; + $this->m_personal_notes = $personal_notes; } // }}} @@ -55,10 +57,10 @@ class MarkReq extends Validate public function formu() { $res = XDB::query('SELECT IF(MAX(m.last)>p.relance, MAX(m.last), p.relance) - FROM auth_user_md5 AS u - LEFT JOIN register_pending AS p ON p.uid = u.user_id - LEFT JOIN register_marketing AS m ON m.uid = u.user_id - WHERE user_id = {?}', + FROM accounts AS a + LEFT JOIN register_pending AS p ON p.uid = a.uid + LEFT JOIN register_marketing AS m ON m.uid = a.uid + WHERE a.uid = {?}', $this->m_user->id()); $this->m_relance = $res->fetchOneCell(); return 'include/form.valid.mark.tpl';