From 6d250cf0dad29c587422a98fc63206d1c81a89a5 Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Tue, 20 May 2014 23:19:52 +0200 Subject: [PATCH] fixed issue when saving files without extension --- src/Intervention/Image/AbstractEncoder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Intervention/Image/AbstractEncoder.php b/src/Intervention/Image/AbstractEncoder.php index 894e3012..2c918b78 100644 --- a/src/Intervention/Image/AbstractEncoder.php +++ b/src/Intervention/Image/AbstractEncoder.php @@ -109,7 +109,7 @@ abstract class AbstractEncoder */ protected function setFormat($format = null) { - if (is_null($format) && $this->image instanceof Image) { + if ($format == '' && $this->image instanceof Image) { $format = $this->image->mime; }