diff --git a/beacon.php b/beacon.php index 52f7ca54d..987d032fd 100644 --- a/beacon.php +++ b/beacon.php @@ -68,7 +68,7 @@ } elseif ($zoneinfo['allow_beacon'] == 'L') { - $sql = "SELECT * FROM ::prefix::zones WHERE zone_id=:zone_id"; + $sql = "SELECT * FROM ::prefix::zones WHERE zone_id=:zone_id LIMIT 1"; $stmt = $pdo_db->prepare($sql); $stmt->bindParam(':sector_id', $sectorinfo['zone_id'], PDO::PARAM_INT); $stmt->execute(); diff --git a/port.php b/port.php index be53756cc..7c4629926 100644 --- a/port.php +++ b/port.php @@ -100,7 +100,7 @@ $sectorinfo['port_energy'] = 0; } -$sql = "SELECT * FROM ::prefix::zones WHERE zone_id=:zone_id"; +$sql = "SELECT * FROM ::prefix::zones WHERE zone_id=:zone_id LIMIT 1"; $stmt = $pdo_db->prepare($sql); $stmt->bindParam(':zone_id', $sectorinfo['zone_id'], PDO::PARAM_INT); $stmt->execute(); diff --git a/zoneedit.php b/zoneedit.php index cb3cb501e..0d014e8cf 100644 --- a/zoneedit.php +++ b/zoneedit.php @@ -102,7 +102,7 @@ $trades = false; } -$sql = "SELECT * FROM ::prefix::zones WHERE zone_id=:zone_id"; +$sql = "SELECT * FROM ::prefix::zones WHERE zone_id=:zone_id LIMIT 1"; $stmt = $pdo_db->prepare($sql); $stmt->bindParam(':zone_id', $zone, PDO::PARAM_INT); $stmt->execute();