Skip to content

Commit ca119d5

Browse files
author
Fabian Mielke
committed
2 parents 228f563 + 76b1747 commit ca119d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Immocaster/Immobilienscout/Immobilienscout.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ protected function createAttachmentBody($sMimeBoundary,$aArgs)
306306
$aFileInfo = finfo_open(FILEINFO_MIME_TYPE);
307307
$aFileInfoMime = finfo_file($aFileInfo, $aArgs['file']);
308308
}
309-
else if($aFileInfoMime = mime_content_type($aArgs['file']))
309+
else if(function_exists('mime_content_type') && $aFileInfoMime = mime_content_type($aArgs['file']))
310310
{
311311
$aFileInfoMime = mime_content_type($aArgs['file']);
312312
}

0 commit comments

Comments
 (0)