X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fwall_attach.php;h=a66ed0d059c6d36970d0f77ff2796541e68a301a;hb=18157769f0142dd1d505497ccdf7a8ea2643d6d1;hp=ef6554df39809118c13f1329296726cd9d8842ed;hpb=fdd372a7988733586b86cac25ba5a521a9f3055e;p=friendica.git diff --git a/mod/wall_attach.php b/mod/wall_attach.php index ef6554df39..a66ed0d059 100644 --- a/mod/wall_attach.php +++ b/mod/wall_attach.php @@ -61,7 +61,7 @@ function wall_attach_post(&$a) { $filedata = @file_get_contents($src); $mimetype = z_mime_content_type($filename); - if((! strlen($mimetype)) || ($mimetype === 'application/octet-stream') && function_exists('mime_content_type')) + if(((! strlen($mimetype)) || ($mimetype === 'application/octet-stream')) && function_exists('mime_content_type')) $mimetype = mime_content_type($filename); $hash = random_string(); $created = datetime_convert();