...
Foaly* [Mon, 7 Apr 2014 22:19:46 +0000 (23:19 +0100)]
lib/class.imagecompressor_utils.php

index d445aad..44066fa 100644 (file)
@@ -107,7 +107,7 @@ class imagecompressor_utils {
                if(function_exists('exif_imagetype'))
                {
                        $info = @exif_imagetype($path);
-                       if($info & in_array($info, array(IMAGETYPE_GIF | IMAGETYPE_JPEG | IMAGETYPE_PNG)))
+                       if($info & in_array($info, array(IMAGETYPE_GIF, IMAGETYPE_JPEG, IMAGETYPE_PNG)))
                        {
                                return true;
                        }