From a75973be4b0f9a48e840beb61a2f3dec1963f82a Mon Sep 17 00:00:00 2001 From: jakani24 Date: Thu, 20 Jun 2024 16:23:29 +0200 Subject: [PATCH] Update manage_incident.php --- .../cyberhex-code/system/secure_zone/php/manage_incident.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/server/cyberhex-code/system/secure_zone/php/manage_incident.php b/src/server/cyberhex-code/system/secure_zone/php/manage_incident.php index 2c9997a..d0fea77 100644 --- a/src/server/cyberhex-code/system/secure_zone/php/manage_incident.php +++ b/src/server/cyberhex-code/system/secure_zone/php/manage_incident.php @@ -94,10 +94,12 @@ if(isset($_GET["add_todolist"])){ $sql_lists = "SELECT id, name FROM todo_lists WHERE belongs_to_incident = ?"; + $stmt = $conn->prepare($sql_lists); $incident_id=htmlspecialchars($_GET["incident_id"]); $stmt->bind_param("i", $incident_id); $incident_id=htmlspecialchars($_GET["incident_id"]); - $result_lists = $conn->query($sql_lists); + $stmt->execute(); + $result_lists = $stmt->get_result(); if ($result_lists->num_rows > 0) { // Output data of each to-do list