aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/attachment/upload.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/phpbb/attachment/upload.php')
-rw-r--r--phpBB/phpbb/attachment/upload.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/attachment/upload.php b/phpBB/phpbb/attachment/upload.php
index f9863b372c..b9d32058db 100644
--- a/phpBB/phpbb/attachment/upload.php
+++ b/phpBB/phpbb/attachment/upload.php
@@ -162,7 +162,7 @@ class upload
// Make sure the image category only holds valid images...
$this->check_image($is_image);
- if (sizeof($this->file->error))
+ if (count($this->file->error))
{
$this->file->remove();
$this->file_data['error'] = array_merge($this->file_data['error'], $this->file->error);