From ff0520ec32909aa63a1957dee482a318960f543a Mon Sep 17 00:00:00 2001 From: Lncvrt Date: Sun, 6 Jul 2025 16:26:55 -0700 Subject: [PATCH] Forgot to change this too --- database/loginAccount.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/database/loginAccount.php b/database/loginAccount.php index 7595f94..eab9488 100644 --- a/database/loginAccount.php +++ b/database/loginAccount.php @@ -4,11 +4,11 @@ setJsonHeader(); checkClientDatabaseVersion(); $conn = newConnection(); -$postData = getPostData(); -$username = $postData['username']; -$password = $postData['password']; -$currentHighScore = $postData['currentHighScore'] ?? 0; -$loginType = $postData['loginType'] ?? '0'; +$post = getPostData(); +$username = $post['username']; +$password = $post['password']; +$currentHighScore = $post['currentHighScore'] ?? 0; +$loginType = $post['loginType'] ?? '0'; $stmt = $conn->prepare("SELECT * FROM users WHERE username = ?"); $stmt->bind_param("s", $username);