Inverse logic error in OembedPlugin

This commit is contained in:
Mikael Nordfeldth 2015-04-03 20:59:56 +02:00
parent 3cf5fe8795
commit 9ab996d9e6
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ class OembedPlugin extends Plugin
// Never treat generic HTML links as an enclosure type!
// But if we have oEmbed info, we'll consider it golden.
$oembed = File_oembed::getKV('file_id', $file->id);
if (!$oembed instanceof File_oembed || !in_array($oembed->type, array('photo', 'video'))) {
if (!$oembed instanceof File_oembed && !in_array($oembed->type, array('photo', 'video'))) {
return true;
}