Fixed search engine issue
authorMarcel Werk <burntime@woltlab.com>
Fri, 24 May 2013 21:47:48 +0000 (23:47 +0200)
committerMarcel Werk <burntime@woltlab.com>
Fri, 24 May 2013 21:47:48 +0000 (23:47 +0200)
wcfsetup/install/files/lib/form/SearchForm.class.php

index f30cc0289669f51cda671988703aa0f5564679ab..d067b88f256e25639759db2076f5cb6d9ea530ac 100644 (file)
@@ -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()));
                }