Skip to content

Instantly share code, notes, and snippets.

@minichate
Created February 5, 2014 16:02
Show Gist options
  • Save minichate/8826865 to your computer and use it in GitHub Desktop.
Save minichate/8826865 to your computer and use it in GitHub Desktop.
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