From: Marcel Werk Date: Tue, 24 Sep 2013 23:13:37 +0000 (+0200) Subject: Fixed small issue X-Git-Tag: 2.0.0_Beta_10~28 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=eea5d470d6cf72e793c5c1b5aa67e1c609cf181f;p=GitHub%2FWoltLab%2FWCF.git Fixed small issue --- diff --git a/wcfsetup/install/files/lib/page/DeletedContentListPage.class.php b/wcfsetup/install/files/lib/page/DeletedContentListPage.class.php index fdc755f47a..8f17c6a430 100644 --- a/wcfsetup/install/files/lib/page/DeletedContentListPage.class.php +++ b/wcfsetup/install/files/lib/page/DeletedContentListPage.class.php @@ -40,14 +40,15 @@ class DeletedContentListPage extends MultipleLinkPage { // get object type if (isset($_REQUEST['objectType'])) { $this->objectType = ObjectTypeCache::getInstance()->getObjectTypeByName('com.woltlab.wcf.deletedContent', $_REQUEST['objectType']); - if ($this->objectType === null) { - throw new IllegalLinkException(); - } } else { // use first object type $objectTypes = ObjectTypeCache::getInstance()->getObjectTypes('com.woltlab.wcf.deletedContent'); - $this->objectType = reset($objectTypes); + if (!empty($objectTypes)) $this->objectType = reset($objectTypes); + } + + if ($this->objectType === null) { + throw new IllegalLinkException(); } }