From 7aae5b133872805964135b27ea7d338c7ccab41d Mon Sep 17 00:00:00 2001
From: Killian <killian.delarue@gmail.com>
Date: Sat, 7 Dec 2019 11:58:08 +0100
Subject: [PATCH] update print requests

---
 htdocs/forms.php        | 1 -
 htdocs/match_script.php | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/htdocs/forms.php b/htdocs/forms.php
index f597e7a..e515cd2 100644
--- a/htdocs/forms.php
+++ b/htdocs/forms.php
@@ -306,7 +306,6 @@ function connection($bdd){
 
         <div class="form-group form-row">
             <div class="offset-sm-2">
-                <!-- <button type="submit">S'inscrire</button> -->
                 <input type="submit" value="Se connecter">
             </div>
         </div>
diff --git a/htdocs/match_script.php b/htdocs/match_script.php
index cd59164..cd872d1 100644
--- a/htdocs/match_script.php
+++ b/htdocs/match_script.php
@@ -67,7 +67,7 @@ function print_requests($users,$requests,$bdd){
         
         
                 foreach ($users as $u){
-                    if ($u->id = $studentId){
+                    if ($u->getId() == $studentId){
                         $studentName = $u->getName();
                         $studentFirstname = $u->getFirstname();
                     }
-- 
GitLab