]> git.mxchange.org Git - friendica.git/blobdiff - mod/wall_attach.php
parent eval order issue
[friendica.git] / mod / wall_attach.php
index ef6554df39809118c13f1329296726cd9d8842ed..a66ed0d059c6d36970d0f77ff2796541e68a301a 100644 (file)
@@ -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();