From feb7fb500d282d7c67d1a122d3e503279bf47be5 Mon Sep 17 00:00:00 2001 From: thekabal Date: Sun, 11 Mar 2018 20:26:25 -0600 Subject: [PATCH] Add limit clause --- warpedit3.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/warpedit3.php b/warpedit3.php index 3ba44774f..47b1f6436 100644 --- a/warpedit3.php +++ b/warpedit3.php @@ -116,7 +116,7 @@ die(); } -$sql = "SELECT * FROM ::prefix::universe WHERE sector_id = :sector_id"; +$sql = "SELECT * FROM ::prefix::universe WHERE sector_id = :sector_id LIMIT 1"; $stmt = $pdo_db->prepare($sql); $stmt->bindParam(':sector_id', $target_sector, PDO::PARAM_INT); $stmt->execute();