Created
February 5, 2014 16:02
-
-
Save minichate/8826865 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/inc/Fresh/Logo.php b/inc/Fresh/Logo.php | |
index 091f09f..10b14a0 100644 | |
--- a/inc/Fresh/Logo.php | |
+++ b/inc/Fresh/Logo.php | |
@@ -343,7 +343,9 @@ class Fresh_EvolveLogo extends Fresh_Logo | |
); | |
$response = $this->_evolveLogo->getLogoContents($this->_fileProperties['evolve_type'], $cacheInfo); | |
if ($response->noErrors()) { | |
- if (strlen($response->result) == $this->_fileProperties['filesize']) { | |
+ if (is_resource($response->result)) { | |
+ return stream_get_contents($response->result); | |
+ } else if (strlen($response->result) == $this->_fileProperties['filesize']) { | |
return $response->result; | |
} else { | |
throw new Fresh_Logo_CloudFetch_Exception("Size mismatch"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment