From: Marcel Werk Date: Fri, 24 May 2013 21:47:48 +0000 (+0200) Subject: Fixed search engine issue X-Git-Tag: 2.0.0_Beta_1~68 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=660bf4b70fad4f512e294c7bb23ac732e715bb23;p=GitHub%2FWoltLab%2FWCF.git Fixed search engine issue --- 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())); }