diff --git a/htdocs/forms.php b/htdocs/forms.php index f597e7a8784da506b8a815df1b615bc6a06822b3..e515cd216bb04609001eb346acfee797c4585a93 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 cd5916452991185bc9247d4938647f2e24167181..cd872d1be244a13be443fbdc16f678f53b36f7a5 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(); }