diff options
Diffstat (limited to 'application/service/files.php')
-rw-r--r-- | application/service/files.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/application/service/files.php b/application/service/files.php index a98e0873f..a21b1d65c 100644 --- a/application/service/files.php +++ b/application/service/files.php @@ -242,7 +242,7 @@ class files { } } - $filesize = filesize($file['tmp_name']); + $filesize = isset($file['tmp_name']) ? filesize($file['tmp_name']) : 0; if ($filesize > $CI->config->item('upload_max_size')) { $error_message = "File too big"; } |