From 660bf4b70fad4f512e294c7bb23ac732e715bb23 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Fri, 24 May 2013 23:47:48 +0200 Subject: [PATCH] Fixed search engine issue --- wcfsetup/install/files/lib/form/SearchForm.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/form/SearchForm.class.php b/wcfsetup/install/files/lib/form/SearchForm.class.php index f30cc02896..d067b88f25 100644 --- a/wcfsetup/install/files/lib/form/SearchForm.class.php +++ b/wcfsetup/install/files/lib/form/SearchForm.class.php @@ -400,7 +400,7 @@ class SearchForm extends RecaptchaForm { } // language - if (LanguageFactory::getInstance()->multilingualismEnabled() && count(WCF::getUser()->getLanguageIDs())) { + if (!empty($this->query) && LanguageFactory::getInstance()->multilingualismEnabled() && count(WCF::getUser()->getLanguageIDs())) { $this->searchIndexCondition->add('(languageID IN (?) OR languageID IS NULL)', array(WCF::getUser()->getLanguageIDs())); } -- 2.20.1