aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/adm/admin_attachments.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/adm/admin_attachments.php')
-rw-r--r--phpBB/adm/admin_attachments.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/phpBB/adm/admin_attachments.php b/phpBB/adm/admin_attachments.php
index cd90fd7ef0..2797fc29d3 100644
--- a/phpBB/adm/admin_attachments.php
+++ b/phpBB/adm/admin_attachments.php
@@ -578,8 +578,10 @@ if ($mode == 'attach')
</tr>
<?php
+ $supported_types = get_supported_image_types();
+
// Check Thumbnail Support
- if (!$new['img_imagick'] && !count(get_supported_image_types()))
+ if (!$new['img_imagick'] && (!isset($supported_types['format']) || !sizeof($supported_types['format'])))
{
$new['img_create_thumbnail'] = '0';
}