diff --git a/indra/newview/llfloatersearch.cpp b/indra/newview/llfloatersearch.cpp
index f135fe4f62e98de016cfac7da303853b57b70c9b..691e7396fb827e174d5ec4053a0406537ec3642d 100644
--- a/indra/newview/llfloatersearch.cpp
+++ b/indra/newview/llfloatersearch.cpp
@@ -203,7 +203,7 @@ void LLFloaterSearch::search(const SearchQuery &p)
 	// (also adds things like [LANGUAGE], [VERSION], [OS], etc.)
 	LLViewerRegion* regionp = gAgent.getRegion();
 	std::string url = regionp != nullptr ? regionp->getSearchServerURL()
-		: gSavedSettings.getString(LLGridManager::getInstance()->isInOpenSim() ? "OpenSimSearchURL" : "SearchURL") :
+		: gSavedSettings.getString(LLGridManager::getInstance()->isInOpenSim() ? "OpenSimSearchURL" : "SearchURL");
 	url = LLWeb::expandURLSubstitutions(url, subs);
 
 	// and load the URL in the web view