Skip to content

Commit

Permalink
Add limit clause
Browse files Browse the repository at this point in the history
  • Loading branch information
thekabal committed Mar 12, 2018
1 parent ef7fe8b commit feb7fb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion warpedit3.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit feb7fb5

Please sign in to comment.