From 8b221bc0551a1d3a89f2799d8f1874d22ea73dd1 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Sat, 10 Jan 2026 15:54:19 -0500 Subject: [PATCH] switched from mysqli_fetch_array to mysqli_fetch_assoc in clients listing page. This will have a major query speed and memory optimization impact --- agent/clients.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/agent/clients.php b/agent/clients.php index cb136ba8..04750196 100644 --- a/agent/clients.php +++ b/agent/clients.php @@ -231,7 +231,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); GROUP BY tags.tag_id HAVING COUNT(client_tags.client_id) > 0 OR tags.tag_id IN ($tag_filter) "); - while ($row = mysqli_fetch_array($sql_tags_filter)) { + while ($row = mysqli_fetch_assoc($sql_tags_filter)) { $tag_id = intval($row['tag_id']); $tag_name = nullable_htmlentities($row['tag_name']); ?> @@ -249,7 +249,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); @@ -268,7 +268,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); @@ -323,7 +323,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));