diff --git a/lib/account.php b/lib/account.php index 64bb9f2..42c3eb0 100644 --- a/lib/account.php +++ b/lib/account.php @@ -289,7 +289,7 @@ function addActivationCodes($count): array $output = ["Status" => "Fail"]; // Default Status is "Fail" if (is_numeric($count) && $count > 0 && $_SESSION["privilege_level"] >= $routerConfig["user_admin_permission_level"] && isLoggedIn()) { - $stmt = $mysqli->prepare("INSERT INTO Users VALUES ActivationToken = ?, CreatedAt = NOW(), CreatedBy = ?"); + $stmt = $mysqli->prepare("INSERT INTO Users (ActivationToken, CreatedAt, CreatedBy) VALUES (?, NOW(), ?)"); for ($i = 0; $i < $count; $i++) { $activationCode = generateActivationToken();