1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-01 11:30:16 +02:00

fixed issue when saving files without extension

This commit is contained in:
Oliver Vogel
2014-05-20 23:19:52 +02:00
parent a01e47834d
commit 6d250cf0da

View File

@@ -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;
}