fixed rss media notification

https://www.drupal.org/node/2472409
This commit is contained in:
Bachir Soussi Chiadmi
2015-09-16 16:34:31 +02:00
parent 4e8346e5e3
commit a99f2d7aa6
2 changed files with 27 additions and 1 deletions

View File

@@ -180,7 +180,7 @@ function views_rss_media_field_formatter_view($entity_type, $entity, $field, $in
// When generating a thumbnail for a video file,
// let's process only thumbnail image details.
if ($item['type'] == 'video' && $display['type'] == 'media_thumbnail') {
if ($display['type'] == 'media_thumbnail' && $item['type'] == 'video') {
$item = (array) $item['thumbnailfile'];
}