Explorar el Código

! Invalid search query on relevance due to new hook

Signed-off-by: Spuds <[email protected]>
Spuds hace 12 años
padre
commit
c0f6b4b407
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Sources/Search.php

+ 1 - 1
Sources/Search.php

@@ -1628,7 +1628,7 @@ function PlushSearch2()
 				if ($_SESSION['search_cache']['num_results'] < $modSettings['search_max_results'] && $numSubjectResults !== 0)
 				{
 					$relevance = '1000 * (';
-					foreach ($main_query['weights'] as $type => $value)
+					foreach ($weight_factors as $type => $value)
 						if (isset($value['results']))
 						{
 							$relevance .= $weight[$type];