...
Foaly* [Fri, 20 Sep 2013 21:27:06 +0000 (22:27 +0100)]
lib/class.imagecompressor_utils.php

index 811b6fb..d34d2f2 100644 (file)
@@ -47,6 +47,10 @@ class imagecompressor_utils {
        {
                $uri = sprintf(self::SMUSHIT_API_URL, urlencode($file_url));
                $f = @fopen($uri, 'r');
+               if($f === false)
+               {
+                       return false;
+               }
                $response = fgets($f);
                fclose($f);