diff --git a/app/Search.php b/app/Search.php index 0d7bdaf94..5b098f0e5 100644 --- a/app/Search.php +++ b/app/Search.php @@ -111,16 +111,31 @@ public static function form(): string if ((bool) $user_search_provider) { $name = 'app.options.'.$user_search_provider; $provider = self::providerDetails($user_search_provider); + $providers = self::providers(); + $providerCount = count($providers); + + // If there's only one provider, use its key instead of the user's setting + if ($providerCount === 1) { + $user_search_provider = $providers->keys()->first(); + } $output .= '