From 20073b5134a07e746b9d3dcd0a9eebff0ea5542b Mon Sep 17 00:00:00 2001 From: nolanwhy <69528856+nolanwhy@users.noreply.github.com> Date: Thu, 16 Feb 2023 10:36:18 +0100 Subject: [PATCH] _ --- core/classes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/classes.php b/core/classes.php index a7fb600..2144c5a 100644 --- a/core/classes.php +++ b/core/classes.php @@ -63,7 +63,7 @@ class PartyStarter { $time = time(); if($user->getLastPaid() !== NULL) { - $dateToCheck = $user->getLastPaid(); + $dateToCheck = (int)$user->getLastPaid(); $dateToCheck += 86400; if($time >= $dateToCheck) { $q = $con->prepare("UPDATE users SET lastPaid=:lastPaid, money=money+:price WHERE id=:id");