Permalink
Browse files

Small fix for issue #17

  • Loading branch information...
1 parent aeb3dfd commit da648e3c80268c72a7fee3a0d25b64a5b1b030c2 @tpyo committed Jun 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 S3.php
View
2 S3.php
@@ -471,7 +471,7 @@ public static function putObject($input, $bucket, $uri, $acl = self::ACL_PRIVATE
if ($input === false) return false;
$rest = new S3Request('PUT', $bucket, $uri, self::$endpoint);
- if (is_string($input)) $input = array(
+ if (!is_array($input)) $input = array(
'data' => $input, 'size' => strlen($input),
'md5sum' => base64_encode(md5($input, true))
);

0 comments on commit da648e3

Please sign in to comment.