Add missing LIMIT 1 to ajax edit items

This commit is contained in:
johnnyq
2025-02-18 20:29:36 -05:00
parent 6f8cc40167
commit 1dee1b4abb
15 changed files with 15 additions and 15 deletions

View File

@@ -4,7 +4,7 @@ require_once '../includes/ajax_header.php';
$custom_link_id = intval($_GET['id']);
$sql = mysqli_query($mysqli, "SELECT * FROM custom_links WHERE custom_link_id = $custom_link_id");
$sql = mysqli_query($mysqli, "SELECT * FROM custom_links WHERE custom_link_id = $custom_link_id LIMIT 1");
$row = mysqli_fetch_array($sql);
$custom_link_name = nullable_htmlentities($row['custom_link_name']);
$custom_link_uri = nullable_htmlentities($row['custom_link_uri']);