A lot of changes (that shouldn't, hopefully be breaking)
This commit is contained in:
@@ -14,9 +14,9 @@ $stmt = $conn0->prepare("SELECT id FROM users WHERE username = ? LIMIT 1");
|
||||
$stmt->bind_param("s", $username);
|
||||
$stmt->execute();
|
||||
$result = $stmt->get_result();
|
||||
$stmt->close();
|
||||
$row = $result->fetch_assoc();
|
||||
if ($result->num_rows != 1) exit;
|
||||
$stmt->close();
|
||||
|
||||
$user_id = $row["id"];
|
||||
|
||||
@@ -24,8 +24,8 @@ $stmt = $conn1->prepare("SELECT 1 FROM userdata WHERE token = ? AND id = ? LIMIT
|
||||
$stmt->bind_param("si", $token, $user_id);
|
||||
$stmt->execute();
|
||||
$result2 = $stmt->get_result();
|
||||
if ($result2->num_rows != 1) exit;
|
||||
$stmt->close();
|
||||
if ($result2->num_rows != 1) exit;
|
||||
|
||||
$time = time();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user