Merge branch 'master' of ssh://git@localhost/cl7
[cl7.git] / php / participant.php
index f7f1acf..7e549e1 100644 (file)
@@ -24,12 +24,12 @@ class Participant
          $this->valide = 0;
          return;
       }
-      
+            
                if (is_string($v1) && is_string($v2)) # Aucun des arguments n'est vide alors c'est le pseudo et le password qui ont été transmis
                        $res = mysql_query("SELECT * FROM participants WHERE pseudo = '" . addslashes($v1) . "' AND password = '" . addslashes($v2) . "'");
                else # Sinon c'est l'id
                        $res = mysql_query("SELECT * FROM participants WHERE id = " . addslashes($v1));
-      
+   
                if (mysql_error() || mysql_num_rows($res) == 0)
       {
          $this->valide = FALSE;