Merge "Add .pipeline/ with dev image variant"
[lhc/web/wiklou.git] / includes / libs / mime / MimeAnalyzer.php
index bafe5e3..6fca043 100644 (file)
@@ -1089,7 +1089,7 @@ EOT;
 
                // Special code for ogg - detect if it's video (theora),
                // else label it as sound.
-               if ( $mime == 'application/ogg' && file_exists( $path ) ) {
+               if ( $mime == 'application/ogg' && is_string( $path ) && file_exists( $path ) ) {
                        // Read a chunk of the file
                        $f = fopen( $path, "rt" );
                        if ( !$f ) {