diff options
Diffstat (limited to 'apps/files_external/3rdparty/aws-sdk-php/Guzzle/Http/EntityBody.php')
-rw-r--r-- | apps/files_external/3rdparty/aws-sdk-php/Guzzle/Http/EntityBody.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Http/EntityBody.php b/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Http/EntityBody.php index 625be6ee173..b60d170f02a 100644 --- a/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Http/EntityBody.php +++ b/apps/files_external/3rdparty/aws-sdk-php/Guzzle/Http/EntityBody.php @@ -126,9 +126,11 @@ class EntityBody extends Stream implements EntityBodyInterface public function getContentMd5($rawOutput = false, $base64Encode = false) { - $hash = self::getHash($this, 'md5', $rawOutput); - - return $hash && $base64Encode ? base64_encode($hash) : $hash; + if ($hash = self::getHash($this, 'md5', $rawOutput)) { + return $hash && $base64Encode ? base64_encode($hash) : $hash; + } else { + return false; + } } /** |