Skip to content

Commit da648e3

Browse files
committed
Small fix for issue tpyo#17
1 parent aeb3dfd commit da648e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

S3.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ public static function putObject($input, $bucket, $uri, $acl = self::ACL_PRIVATE
471471
if ($input === false) return false;
472472
$rest = new S3Request('PUT', $bucket, $uri, self::$endpoint);
473473

474-
if (is_string($input)) $input = array(
474+
if (!is_array($input)) $input = array(
475475
'data' => $input, 'size' => strlen($input),
476476
'md5sum' => base64_encode(md5($input, true))
477477
);

0 commit comments

Comments
 (0)