aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerky <derky@phpbb.com>2018-09-14 14:40:46 +0200
committerDerky <derky@phpbb.com>2018-09-14 14:40:46 +0200
commit1991df95190ca3d401d7b60275159c797caaf5af (patch)
tree7afa079e7f97bfce51475bff088c69e7738771c4
parentdb71ca7db10adf83b3f65654058a2d9781640532 (diff)
parentaf5a2c4a20871685aca32c0e8ee3bfe3a340e8cb (diff)
downloadforums-1991df95190ca3d401d7b60275159c797caaf5af.tar
forums-1991df95190ca3d401d7b60275159c797caaf5af.tar.gz
forums-1991df95190ca3d401d7b60275159c797caaf5af.tar.bz2
forums-1991df95190ca3d401d7b60275159c797caaf5af.tar.xz
forums-1991df95190ca3d401d7b60275159c797caaf5af.zip
Merge pull request #5349 from rubencm/ticket/15566
[ticket/15566] Set category to none if extension don't exist
-rw-r--r--phpBB/includes/acp/acp_attachments.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/acp/acp_attachments.php b/phpBB/includes/acp/acp_attachments.php
index dc4eb66cf8..6c2df8d999 100644
--- a/phpBB/includes/acp/acp_attachments.php
+++ b/phpBB/includes/acp/acp_attachments.php
@@ -1270,7 +1270,7 @@ class acp_attachments
$row['extension'] = strtolower(trim((string) $row['extension']));
$comment = ($row['attach_comment'] && !$row['in_message']) ? str_replace(array("\n", "\r"), array('<br />', "\n"), $row['attach_comment']) : '';
- $display_cat = $extensions[$row['extension']]['display_cat'];
+ $display_cat = isset($extensions[$row['extension']]['display_cat']) ? $extensions[$row['extension']]['display_cat'] : ATTACHMENT_CATEGORY_NONE;
$l_downloaded_viewed = ($display_cat == ATTACHMENT_CATEGORY_NONE) ? 'DOWNLOAD_COUNTS' : 'VIEWED_COUNTS';
$template->assign_block_vars('attachments', array(