]> git.andy128k.dev Git - ipf.git/commitdiff
fallback image type to JPEG
authorAndrey Kutejko <andy128k@gmail.com>
Sun, 2 Jun 2013 13:43:06 +0000 (16:43 +0300)
committerAndrey Kutejko <andy128k@gmail.com>
Sun, 2 Jun 2013 13:43:06 +0000 (16:43 +0300)
ipf/image.php

index 504054da802b6552e4c1fa6fc100b4bc15208a54..539ff81f0a44ffb4fb81f61836120f0d0d89fea8 100644 (file)
@@ -60,6 +60,8 @@ class IPF_Image
         $type = null;
         if ($filename) {
             $type = self::detectType($filename);
+            if (!$type)
+                $type = IMAGETYPE_JPEG;
         } else {
             $filename = $this->path;
             if ($this->type)