Skip to content
Snippets Groups Projects
Commit 755c9668 authored by prolic's avatar prolic
Browse files

Ignore empty string response

Empty string response is not an image
parent dca26963
No related merge requests found
......@@ -643,6 +643,10 @@ class Loader implements \Zend\Log\LoggerAwareInterface
}
$image = $result->getBody();
if ('' == $image) {
return false;
}
// Figure out file paths -- $tempFile will be used to store the
// image for analysis. $finalFile will be used for long-term storage if
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment