Commit cab8b6d5 authored by webchick's avatar webchick

Issue #2080551 by beowulf1416, deneo: Remove Unused local variable from...

Issue #2080551 by beowulf1416, deneo: Remove Unused local variable  from /core/modules/search/lib/Drupal/search/SearchQuery.php.
parent 8f7e91cd
......@@ -451,11 +451,9 @@ public function execute()
// Re-normalize scores with multipliers by dividing by the total of all
// multipliers. The expressions were altered in addScore(), so here just
// add the arguments for the total.
$i = 0;
$sum = array_sum($this->multiply);
foreach ($this->multiply as $total) {
for ($i = 0; $i < count($this->multiply); $i++) {
$this->scoresArguments[':total_' . $i] = $sum;
$i++;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment