From 49b2a07afb75bda359d43d3d198a9e9dfaf9cd2f Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Wed, 14 Jan 2009 12:48:21 -0500 Subject: [PATCH] Do not put duplicate entries into the search query when searching by products/versions/components * search.php --- search.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/search.php b/search.php index 4b323e2..428f144 100644 --- a/search.php +++ b/search.php @@ -245,9 +245,9 @@ if ($_REQUEST['do'] == 'process') { $product = explode(',', $prod); $product = $input->clean($product, TYPE_UINT); - $products[] = $product[0]; - $components[] = $product[1]; - $versions[] = $product[2]; + $products[$product[0]] = $product[0]; + $components[$product[1]] = $product[1]; + $versions[$product[2]] = $product[2]; } $querybuild['pcv'] = "AND bug.product IN (" . implode(',', $products) . ") AND bug.component IN (" . implode(',', $components) . ") AND bug.version IN (" . implode(',', $versions) . ")"; } -- 2.43.5