From 3ab6bbd75244e4e9b52ca837e6d60746cdfdd281 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Tue, 14 Mar 2017 19:19:20 +0100 Subject: [PATCH] Fixed issue caused by attachments with missing file type value --- .../data/attachment/AdministrativeAttachmentList.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/data/attachment/AdministrativeAttachmentList.class.php b/wcfsetup/install/files/lib/data/attachment/AdministrativeAttachmentList.class.php index 51a30a08ab..17dd8a0be1 100644 --- a/wcfsetup/install/files/lib/data/attachment/AdministrativeAttachmentList.class.php +++ b/wcfsetup/install/files/lib/data/attachment/AdministrativeAttachmentList.class.php @@ -64,7 +64,9 @@ class AdministrativeAttachmentList extends AttachmentList { $statement = WCF::getDB()->prepareStatement($sql); $statement->execute($this->getConditionBuilder()->getParameters()); while ($row = $statement->fetchArray()) { - $fileTypes[$row['fileType']] = $row['fileType']; + if ($row['fileType']) { + $fileTypes[$row['fileType']] = $row['fileType']; + } } ksort($fileTypes); -- 2.20.1