From: Marcel Werk Date: Wed, 23 Apr 2014 19:57:43 +0000 (+0200) Subject: Fixed search issue X-Git-Tag: 2.0.6~19 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f28a031b8269ac012dcb5bec4c83c385596914eb;p=GitHub%2FWoltLab%2FWCF.git Fixed search issue --- diff --git a/wcfsetup/install/files/lib/page/SearchResultPage.class.php b/wcfsetup/install/files/lib/page/SearchResultPage.class.php index e6cbcd3bf2..07453a94dc 100644 --- a/wcfsetup/install/files/lib/page/SearchResultPage.class.php +++ b/wcfsetup/install/files/lib/page/SearchResultPage.class.php @@ -101,7 +101,7 @@ class SearchResultPage extends MultipleLinkPage { // set active menu item if (isset($this->searchData['selectedObjectTypes']) && count($this->searchData['selectedObjectTypes']) == 1) { - $objectType = SearchEngine::getInstance()->getObjectType($this->searchData['selectedObjectTypes'][0]); + $objectType = SearchEngine::getInstance()->getObjectType(reset($this->searchData['selectedObjectTypes'])); if (($activeMenuItem = $objectType->getActiveMenuItem())) { PageMenu::getInstance()->setActiveMenuItem($activeMenuItem); }