Bläddra i källkod

! Invalid search query on relevance due to new hook

Signed-off-by: Spuds <[email protected]>
Spuds 12 år sedan
förälder
incheckning
c0f6b4b407
1 ändrade filer med 1 tillägg och 1 borttagningar
  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];