Fix per les cookies que no funcionen
diff --git a/ajax/getusers.php b/ajax/getusers.php
index 7d9f52e..181ca56 100644
--- a/ajax/getusers.php
+++ b/ajax/getusers.php
@@ -3,12 +3,15 @@
require '../php/utils.php';
$users = get_users(0, false);
+ $users_alive = [];
+
foreach ($users as &$user) {
if ($user["mort"]) continue;
- $user["nopassword"] = $user["md5password"] == "" ? "nopassword" : "";
+ $user["nopassword"] = ($user["md5password"] == "" ? "nopassword" : "");
unset($user["md5password"]);
+ array_push($users_alive, $user);
}
- echo json_encode($users);
+ echo json_encode($users_alive);
?>