Commit 831ad96b authored by jlaval's avatar jlaval
Browse files

* Désactive le debug

* Corrige la requête de doublon de mail
parent 2844faad
......@@ -58,7 +58,7 @@ class participation extends basedb
'contribution_parent' => $this->contribution_parent,
'contribution_siteweb' => $this->contribution_siteweb,
'contribution_depot' => $this->contribution_depot,
'contribution_description' => $this->contribution_description), 1);
'contribution_description' => $this->contribution_description));
if (!$req->is_success())
return false;
......
......@@ -72,7 +72,7 @@ if ( $_REQUEST["action"] == 'addparticipation' ) {
if (!$Erreur) {
$req = new requete($part->db,
"SELECT * WHERE `email`='".mysql_real_escape_string($_REQUEST['email'])."'");
"SELECT * FROM `pull_participations` WHERE `email`='".mysql_real_escape_string($_REQUEST['email'])."'");
if ($req->lines > 0)
$Erreur = "Une participation est déjà enregistré avec votre email";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment