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'];