better error handling on check
Foaly* [Fri, 20 Sep 2013 21:25:10 +0000 (22:25 +0100)]
lib/class.imagecompressor_utils.php

index 6ade1af..811b6fb 100644 (file)
@@ -46,7 +46,7 @@ class imagecompressor_utils {
        static final public function smushit_post($file_url)
        {
                $uri = sprintf(self::SMUSHIT_API_URL, urlencode($file_url));
-               $f = fopen($uri, 'r');
+               $f = @fopen($uri, 'r');
                $response = fgets($f);
                fclose($f);