From c25cf66bb51d126109b4ae73338971b957fc4609 Mon Sep 17 00:00:00 2001 From: Mario <100047175+Mariopizza1@users.noreply.github.com> Date: Tue, 14 Feb 2023 09:14:56 +0200 Subject: [PATCH] helppppppp --- game/PlaceLauncher.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/game/PlaceLauncher.php b/game/PlaceLauncher.php index 26cb413..9f45626 100644 --- a/game/PlaceLauncher.php +++ b/game/PlaceLauncher.php @@ -43,8 +43,9 @@ if ($momentoftruth == 1) { $checkifjobalreadyexists->execute(); $okcheck = $checkifjobalreadyexists->fetchColumn(); if ($okcheck == 1) { - $getjobforalready = $con->prepare('SELECT jobid FROM jobs WHERE placeid=:placeid'); + $getjobforalready = $con->prepare('SELECT jobid FROM jobs WHERE placeid=:placeid AND isonline=:isonline'); $getjobforalready->bindParam(':placeid', $placeid); + $getjobforalready->bindParam(':isonline', $helppdo); $getjobforalready->execute(); $china2 = $getjobforalready->fetch(PDO::FETCH_BOTH); $jobid = $china2['jobid'];