From b42de10d79ab86bca71a9f65dbe2bd121a82b6f4 Mon Sep 17 00:00:00 2001
From: Davide Aprea <davide@suma-ev.de>
Date: Wed, 18 Nov 2020 16:51:20 +0100
Subject: [PATCH] add dummy case for enabled search engines

---
 app/MetaGer.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/MetaGer.php b/app/MetaGer.php
index 2767f0272..71ca446a7 100644
--- a/app/MetaGer.php
+++ b/app/MetaGer.php
@@ -671,7 +671,7 @@ class MetaGer
 
         # Special case if search engines are disabled
         # Since bing is normally only active if a filter is set but it should be active, too if yahoo is disabled
-        if ($this->getFokus() === "web" && empty($this->enabledSearchengines["yahoo"]) && \Cookie::get("web_engine_bing") !== "off") {
+        if ($this->getFokus() === "web" && empty($this->enabledSearchengines["yahoo"]) && \Cookie::get("web_engine_bing") !== "off"  && !isset($this->enabledSearchengines["dummy"])) {
             $this->enabledSearchengines["bing"] = $this->sumaFile->sumas->{"bing"};
         }
 
-- 
GitLab