diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2007-05-07 21:21:40 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2007-05-07 21:21:40 +0000 |
commit | cbb742ea8073a35fe812ba9da97faed2b8612d61 (patch) | |
tree | ef487e255b57a5f76b27be32b0e583e09fd94f8f /phpBB/includes/functions.php | |
parent | 383e27dba8057fbbafc83590bc6a98ce774b8634 (diff) | |
download | forums-cbb742ea8073a35fe812ba9da97faed2b8612d61.tar forums-cbb742ea8073a35fe812ba9da97faed2b8612d61.tar.gz forums-cbb742ea8073a35fe812ba9da97faed2b8612d61.tar.bz2 forums-cbb742ea8073a35fe812ba9da97faed2b8612d61.tar.xz forums-cbb742ea8073a35fe812ba9da97faed2b8612d61.zip |
#10617
git-svn-id: file:///svn/phpbb/trunk@7503 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r-- | phpBB/includes/functions.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 41023816af..c7d77da408 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -2851,8 +2851,8 @@ function parse_attachments($forum_id, &$message, &$attachments, &$update_count, { $dimension = getimagesize($filename); - // If the dimensions could not be determined or the image being too small we display it as a link for safety purposes - if ($dimension === false || $dimension[0] < 2 || $dimension[1] < 2) + // If the dimensions could not be determined or the image being 0x0 we display it as a link for safety purposes + if ($dimension === false || empty($dimension[0]) || empty($dimension[1])) { $display_cat = ATTACHMENT_CATEGORY_NONE; } |