Could've been bad lmao

This commit is contained in:
2025-12-31 23:48:25 -07:00
parent 7cc6afeca6
commit 2728fc6e83

View File

@@ -22,8 +22,8 @@ if ($result->num_rows != 1) exitWithMessage(json_encode(["success" => false]));
$row = $result->fetch_assoc(); $row = $result->fetch_assoc();
$id = $row["id"]; $id = $row["id"];
$stmt2 = $conn1->prepare("SELECT * FROM userdata WHERE id = ?"); $stmt2 = $conn1->prepare("SELECT * FROM userdata WHERE token = ? AND id = ?");
$stmt2->bind_param("i", $id); $stmt2->bind_param("si", $token, $id);
$stmt2->execute(); $stmt2->execute();
$result2 = $stmt2->get_result(); $result2 = $stmt2->get_result();
if ($result2->num_rows != 1) exitWithMessage(json_encode(["success" => false])); if ($result2->num_rows != 1) exitWithMessage(json_encode(["success" => false]));