Update classes.php

This commit is contained in:
nolanwhy 2023-02-12 10:55:19 +01:00
parent 4b9d67e22b
commit 3dc88acea4
1 changed files with 2 additions and 1 deletions

View File

@ -60,7 +60,8 @@ class PartyStarter {
} else {
$q = $con->prepare("UPDATE users SET lastPaid=:date WHERE id=:id");
$q->bindParam(':id',$_SESSION['user'],PDO::PARAM_INT);
$q->bindParam(':date',time(),PDO::PARAM_INT);
$time = time();
$q->bindParam(':date',$time,PDO::PARAM_INT);
$q->execute();
$q = $con->prepare("UPDATE users SET money=money+:price WHERE id=:id");