aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_display.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-05-21 16:54:19 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-05-21 16:54:19 +0000
commit530b7e94c5e10eb1b9aa2ea488825265b685651e (patch)
treee679fd1af844e3b80d36923bde481873aee0e56d /phpBB/includes/functions_display.php
parent2ddac1037550a12e6a49dd7d78f7884ce584eedc (diff)
downloadforums-530b7e94c5e10eb1b9aa2ea488825265b685651e.tar
forums-530b7e94c5e10eb1b9aa2ea488825265b685651e.tar.gz
forums-530b7e94c5e10eb1b9aa2ea488825265b685651e.tar.bz2
forums-530b7e94c5e10eb1b9aa2ea488825265b685651e.tar.xz
forums-530b7e94c5e10eb1b9aa2ea488825265b685651e.zip
- fixing a few smaller bugs/glitches
- init user session in cron.php (else it can produce errors if functions expect the user object being set) - fix sql escaping for mssql/mssql_odbc git-svn-id: file:///svn/phpbb/trunk@5957 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_display.php')
-rw-r--r--phpBB/includes/functions_display.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php
index e99e387b12..7dc2fe9a98 100644
--- a/phpBB/includes/functions_display.php
+++ b/phpBB/includes/functions_display.php
@@ -765,7 +765,7 @@ function display_attachments($forum_id, $blockname, &$attachment_data, &$update_
{
if ($config['img_link_width'] || $config['img_link_height'])
{
- list($width, $height) = getimagesize($filename);
+ list($width, $height) = @getimagesize($filename);
$display_cat = (!$width && !$height) ? ATTACHMENT_CATEGORY_IMAGE : (($width <= $config['img_link_width'] && $height <= $config['img_link_height']) ? ATTACHMENT_CATEGORY_IMAGE : ATTACHMENT_CATEGORY_NONE);
}