From dcbd76ecaae6a37d3507d32fed4f296c455bb6ca Mon Sep 17 00:00:00 2001 From: Andrey Kutejko Date: Sun, 2 Jun 2013 16:43:06 +0300 Subject: [PATCH] fallback image type to JPEG --- ipf/image.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ipf/image.php b/ipf/image.php index 504054d..539ff81 100644 --- a/ipf/image.php +++ b/ipf/image.php @@ -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) -- 2.49.0