Update file users.php
This commit is contained in:
parent
fdaf0e9b58
commit
0a7772dd07
@ -55,7 +55,7 @@ if($_SESSION['role'] < 4) {
|
||||
foreach($resultat as $row) {
|
||||
echo "<div><form action='' method='post'><div>" . $row['display_name'] . "</div><div>" . $row['username'] . "</div><div>" . $row['email'] . "</div><div><select name='role' required>";
|
||||
foreach($classifications as $id => $nom) {
|
||||
if($req['role'] == $id) {
|
||||
if($row['role'] == $id) {
|
||||
echo '<option value="' . $id .'">' . $nom . '</option>';
|
||||
} else {
|
||||
echo '<option value="' . $id .'" selected>' . $nom . '</option>';
|
||||
|
Loading…
x
Reference in New Issue
Block a user