aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorrubencm <rubencm@gmail.com>2018-09-13 11:55:05 +0000
committerrubencm <rubencm@gmail.com>2018-09-13 11:55:05 +0000
commit0898c4c1ccad955059ae13de9211b3e611f15a7e (patch)
treed7b8d0e2e2f7fbe4a275012e8f3cc453b3f7580a /phpBB
parentee9eb586dd49edd8044a9910782a01aef691e0df (diff)
downloadforums-0898c4c1ccad955059ae13de9211b3e611f15a7e.tar
forums-0898c4c1ccad955059ae13de9211b3e611f15a7e.tar.gz
forums-0898c4c1ccad955059ae13de9211b3e611f15a7e.tar.bz2
forums-0898c4c1ccad955059ae13de9211b3e611f15a7e.tar.xz
forums-0898c4c1ccad955059ae13de9211b3e611f15a7e.zip
[ticket/15566] Set category to none if extension don't exist
PHPBB3-15566
Diffstat (limited to 'phpBB')
-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 3cfe5de293..4d8bccb456 100644
--- a/phpBB/includes/acp/acp_attachments.php
+++ b/phpBB/includes/acp/acp_attachments.php
@@ -1237,7 +1237,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(