From: Marcel Werk Date: Thu, 2 Jan 2014 11:33:33 +0000 (+0100) Subject: Small workaround X-Git-Tag: 2.0.1~5 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ea15e5656d84c21f4f49186e867b7d45ab667f58;p=GitHub%2FWoltLab%2FWCF.git Small workaround --- diff --git a/wcfsetup/install/files/lib/page/SearchResultPage.class.php b/wcfsetup/install/files/lib/page/SearchResultPage.class.php index 6da6e828f1..e32095818b 100644 --- a/wcfsetup/install/files/lib/page/SearchResultPage.class.php +++ b/wcfsetup/install/files/lib/page/SearchResultPage.class.php @@ -100,7 +100,7 @@ class SearchResultPage extends MultipleLinkPage { $this->readMessages(); // set active menu item - if (count($this->searchData['selectedObjectTypes']) == 1) { + if (isset($this->searchData['selectedObjectTypes']) && count($this->searchData['selectedObjectTypes']) == 1) { $objectType = SearchEngine::getInstance()->getObjectType($this->searchData['selectedObjectTypes'][0]); if (($activeMenuItem = $objectType->getActiveMenuItem())) { PageMenu::getInstance()->setActiveMenuItem($activeMenuItem);