From f28a031b8269ac012dcb5bec4c83c385596914eb Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Wed, 23 Apr 2014 21:57:43 +0200 Subject: [PATCH] Fixed search issue --- wcfsetup/install/files/lib/page/SearchResultPage.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.20.1