diff options
author | rubencm <rubencm@gmail.com> | 2018-09-13 11:55:05 +0000 |
---|---|---|
committer | rubencm <rubencm@gmail.com> | 2018-09-13 11:55:05 +0000 |
commit | 0898c4c1ccad955059ae13de9211b3e611f15a7e (patch) | |
tree | d7b8d0e2e2f7fbe4a275012e8f3cc453b3f7580a /phpBB | |
parent | ee9eb586dd49edd8044a9910782a01aef691e0df (diff) | |
download | forums-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.php | 2 |
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( |