diff --git a/admin/salles/index.php b/admin/salles/index.php index 024a9b5..9124d24 100644 --- a/admin/salles/index.php +++ b/admin/salles/index.php @@ -54,11 +54,12 @@ function Affiche_plan_salle($salle) { if ($nb_jours >= $j30) { $class_jour = ' j30'; } $class_connexion=''; - $link = ''; + $link = ''; $username = ''; - $ip = ''; + $ip = IP_machine($machine); + // s'il existe une connexion sur la machine if (array_key_exists($machine, $machines_connectees)) { - $class_connexion = ' conn'; $link = ''; + $class_connexion = ' conn'; $username = $machines_connectees[$machine]["username"]; $ip = $machines_connectees[$machine]["ip"]; }