projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Port survey.
[platal.git]
/
include
/
validations
/
marketing.inc.php
diff --git
a/include/validations/marketing.inc.php
b/include/validations/marketing.inc.php
index
53a5e75
..
3d724d5
100644
(file)
--- a/
include/validations/marketing.inc.php
+++ b/
include/validations/marketing.inc.php
@@
-1,6
+1,6
@@
<?php
/***************************************************************************
<?php
/***************************************************************************
- * Copyright (C) 2003-200
8
Polytechnique.org *
+ * Copyright (C) 2003-200
9
Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-39,10
+39,10
@@
class MarkReq extends Validate
// }}}
// {{{ constructor
// }}}
// {{{ constructor
- public function __construct(User
$sender, User
$mark, $email, $perso, $type, $data)
+ public function __construct(User
&$sender, User &
$mark, $email, $perso, $type, $data)
{
parent::__construct($sender, false, 'marketing');
{
parent::__construct($sender, false, 'marketing');
- $this->m_user = $mark;
+ $this->m_user =
&
$mark;
$this->m_email = $email;
$this->perso = $perso;
$this->m_type = $type;
$this->m_email = $email;
$this->perso = $perso;
$this->m_type = $type;
@@
-55,10
+55,10
@@
class MarkReq extends Validate
public function formu()
{
$res = XDB::query('SELECT IF(MAX(m.last)>p.relance, MAX(m.last), p.relance)
public function formu()
{
$res = XDB::query('SELECT IF(MAX(m.last)>p.relance, MAX(m.last), p.relance)
- FROM a
uth_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 a
ccounts AS a
+ LEFT JOIN register_pending AS p ON p.uid =
a.u
id
+ LEFT JOIN register_marketing AS m ON m.uid =
a.u
id
+ WHERE
a.u
id = {?}',
$this->m_user->id());
$this->m_relance = $res->fetchOneCell();
return 'include/form.valid.mark.tpl';
$this->m_user->id());
$this->m_relance = $res->fetchOneCell();
return 'include/form.valid.mark.tpl';