From bac682faac61764adc95258567640972f1ce0090 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Thu, 5 May 2005 01:28:26 +0000 Subject: [PATCH] r80: Fixed: - Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in search.php on line 124 - Could not load the template 'templates/default/search_results_bit.tpl' 106 - Fatal error: Call to undefined function: sanitize() in search.php on line 45 --- search.php | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/search.php b/search.php index 2763454..a26703f 100644 --- a/search.php +++ b/search.php @@ -13,7 +13,7 @@ $fetchtemplates = array( 'search', 'search_results', - 'search_results_bit' + //'search_results_bit' ); require_once('./global.php'); @@ -42,20 +42,6 @@ if (empty($_REQUEST['do'])) if ($_REQUEST['do'] == 'results') { - sanitize(array( - 'summary' => STR, // done - 'reporter' => STR, // done - 'pcv_select' => STR, // done - 'severity' => INT, // done - 'priority' => INT, // done - 'status' => INT, // done - 'resolution' => INT, // done - 'assignedto' => INT, // done - 'date' => INT, // done - 'sortby' => STR, - 'orderby' => STR) - ); - // ------------------------------------------------------------------- // parse out our product/component/version $pcv = parse_pcv_select($bugsys->in['pcv_select']); @@ -121,7 +107,7 @@ if ($_REQUEST['do'] == 'results') // product/component/version stuff if (is_array($bugsys->in['pcv'])) { - $querybuild['pcv'] = "AND bug.productid = $pcv['product'] AND bug.componentid = $pcv['component'] AND bug.versionid = $pcv['version']"; + $querybuild['pcv'] = "AND bug.productid = $pcv[product] AND bug.componentid = $pcv[component] AND bug.versionid = $pcv[version]"; } // ------------------------------------------------------------------- -- 2.43.5