Small workaround
authorMarcel Werk <burntime@woltlab.com>
Thu, 2 Jan 2014 11:33:33 +0000 (12:33 +0100)
committerMarcel Werk <burntime@woltlab.com>
Thu, 2 Jan 2014 11:33:33 +0000 (12:33 +0100)
wcfsetup/install/files/lib/page/SearchResultPage.class.php

index 6da6e828f14af95fb0895b31845bbfc681cb3507..e32095818b5dc9fadfacbd0f9bc194338aea8cb9 100644 (file)
@@ -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);