summaryrefslogtreecommitdiff
path: root/src/HTTP_POST_multipart.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/HTTP_POST_multipart.php')
-rw-r--r--src/HTTP_POST_multipart.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/HTTP_POST_multipart.php b/src/HTTP_POST_multipart.php
index 3c88ef3..06a1d0d 100644
--- a/src/HTTP_POST_multipart.php
+++ b/src/HTTP_POST_multipart.php
@@ -102,7 +102,7 @@ class HTTP_POST_multipart {
$postParts[] = array();
foreach ($parts as $part) {
- if (array_key_exists('filename')) {
+ if (array_key_exists('filename', $part)) {
# this is a file part
$postParts[] = self::buildFilePart($part);
}