aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_attachments.php
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2006-03-28 16:46:49 +0000
committerDavid M <davidmj@users.sourceforge.net>2006-03-28 16:46:49 +0000
commitfe9590cf5a3946260d61748cfc2ac0e13f10c23b (patch)
tree24ddbbf66a22fbd200cb0626ef8ee45d55ce14f9 /phpBB/includes/acp/acp_attachments.php
parent20e6dbb389b0eef201d192367d54ce3deac03c50 (diff)
downloadforums-fe9590cf5a3946260d61748cfc2ac0e13f10c23b.tar
forums-fe9590cf5a3946260d61748cfc2ac0e13f10c23b.tar.gz
forums-fe9590cf5a3946260d61748cfc2ac0e13f10c23b.tar.bz2
forums-fe9590cf5a3946260d61748cfc2ac0e13f10c23b.tar.xz
forums-fe9590cf5a3946260d61748cfc2ac0e13f10c23b.zip
- Bug 1301
git-svn-id: file:///svn/phpbb/trunk@5743 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/acp/acp_attachments.php')
-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 f2faa26d02..0dccf96101 100644
--- a/phpBB/includes/acp/acp_attachments.php
+++ b/phpBB/includes/acp/acp_attachments.php
@@ -864,7 +864,7 @@ class acp_attachments
$attach_filelist = array();
$dir = @opendir($phpbb_root_path . $config['upload_path']);
- while ($file = @readdir($dir))
+ while (($file = @readdir($dir)) !== false)
{
if (is_file($phpbb_root_path . $config['upload_path'] . '/' . $file) && filesize($phpbb_root_path . $config['upload_path'] . '/' . $file) && $file{0} != '.' && $file != 'index.htm' && !preg_match('#^thumb\_#', $file))
{