From 81c8004f94759b3b37090d648eb7320bc6dfedf1 Mon Sep 17 00:00:00 2001 From: Aria <aria@suma-ev.de> Date: Tue, 9 May 2017 09:07:30 +0200 Subject: [PATCH] =?UTF-8?q?Unn=C3=B6tige=20if=20Abfrage=20rausgel=C3=B6sch?= =?UTF-8?q?t?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/MetaGer.php | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/app/MetaGer.php b/app/MetaGer.php index 8bc3fcde2..7b18c301f 100644 --- a/app/MetaGer.php +++ b/app/MetaGer.php @@ -1133,16 +1133,8 @@ class MetaGer public function rankAll() { - $phraseSearch = sizeof($this->getPhrases()) > 0 ? true : false; - - if($phraseSearch) { - foreach ($this->engines as $engine) { - $engine->rank($this->getQ(), $this->getPhrases()); - } - } else { - foreach ($this->engines as $engine) { - $engine->rank($this->getQ()); - } + foreach ($this->engines as $engine) { + $engine->rank($this->getQ(), $this->getPhrases()); } } -- GitLab