From 391e41d6d6319ae9ebf18b514db357484292b0a5 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 29 Jan 2024 07:37:40 -0500 Subject: [PATCH] Fix exists() condition in DisposableFullTextSearch --- src/Database/DisposableFullTextSearch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Database/DisposableFullTextSearch.php b/src/Database/DisposableFullTextSearch.php index 5ef8adebd2..f6aa9dc4ba 100644 --- a/src/Database/DisposableFullTextSearch.php +++ b/src/Database/DisposableFullTextSearch.php @@ -42,7 +42,7 @@ class DisposableFullTextSearch do { // Maximum value is indicated by the INT UNSIGNED type of the check-full-text-search.pid field $this->identifier = random_int(0, pow(2, 32) - 1); - } while($this->db->exists('check-full-text-search', ['pid' => $this->identifier, 'searchtext' => $haystack])); + } while ($this->db->exists('check-full-text-search', ['pid' => $this->identifier])); // If the `exists()` call fails and return false because the database is unavailable, the `insert()` call will likely fail as well, which means // all subsequent calls to `match()` will return false because the haystack won't have been inserted.