Index: trunk/kernel/frontaction.php =================================================================== diff -u -r3983 -r4052 --- trunk/kernel/frontaction.php (.../frontaction.php) (revision 3983) +++ trunk/kernel/frontaction.php (.../frontaction.php) (revision 4052) @@ -957,12 +957,15 @@ $objSearch->SetKeywords($keywords); $objSearch->AddSimpleFields(); - if(is_numeric($objConfig->Get("SearchRel_Pop_category"))) + if (is_numeric($objConfig->Get("SearchRel_Pop_category"))) { $objSearch->PctPop = ($objConfig->Get("SearchRel_Pop_category")/100); - if(is_numeric($objConfig->Get("SearchRel_Keyword_category"))) + } + if (is_numeric($objConfig->Get("SearchRel_Keyword_category"))) { $objSearch->PctRelevance = ($objConfig->Get("SearchRel_Keyword_category")/100); - if(is_numeric($objConfig->Get("SearchRel_Rating_article"))) + } + if (is_numeric($objConfig->Get("SearchRel_Rating_category"))) { $objSearch->PctRating = ($objConfig->Get("SearchRel_Rating_category")/100); + } //echo "Searching On $keywords
\n"; $objSearch->PerformSearch(1,$SortOrder,TRUE); @@ -1098,12 +1101,15 @@ $objSearch->SetKeywords($keywords); $objSearch->AddSimpleFields(); - if(is_numeric($objConfig->Get("SearchRel_Pop_category"))) + if (is_numeric($objConfig->Get("SearchRel_Pop_category"))) { $objSearch->PctPop = ($objConfig->Get("SearchRel_Pop_category")/100); - if(is_numeric($objConfig->Get("SearchRel_Keyword_category"))) + } + if (is_numeric($objConfig->Get("SearchRel_Keyword_category"))) { $objSearch->PctRelevance = ($objConfig->Get("SearchRel_Keyword_category")/100); - if(is_numeric($objConfig->Get("SearchRel_Rating_article"))) + } + if (is_numeric($objConfig->Get("SearchRel_Rating_category"))) { $objSearch->PctRating = ($objConfig->Get("SearchRel_Rating_category")/100); + } $SearchResultIdList = $objSearch->Result_IdList(); if(count($SearchResultIdList)>0)