From 746abf8e984069bc7d0f725c57d80ce14d4dcc6b Mon Sep 17 00:00:00 2001
From: Dominik Hebeler <dominik@suma-ev.de>
Date: Mon, 1 Jul 2024 12:55:43 +0200
Subject: [PATCH] fix ignored_user_settings not working

---
 metager/app/SearchSettings.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/metager/app/SearchSettings.php b/metager/app/SearchSettings.php
index 5cb29d897..1bd7ef1ad 100644
--- a/metager/app/SearchSettings.php
+++ b/metager/app/SearchSettings.php
@@ -143,7 +143,9 @@ class SearchSettings
         $this->blacklist_tld = array_unique($this->blacklist_tld);
         sort($this->blacklist_tld);
 
-        $this->user_settings = array_diff($this->user_settings, $this->ignore_user_settings);
+        foreach ($this->ignore_user_settings as $ignored_key) {
+            unset($this->user_settings[$ignored_key]);
+        }
     }
 
     public function loadQueryFilter()
-- 
GitLab