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'];
}

View File

@ -0,0 +1,26 @@
From 343f3a90f3904e74732d0005ff037d5b51d2b416 Mon Sep 17 00:00:00 2001
From: Dane Powell <git@danepowell.com>
Date: Thu, 16 Apr 2015 08:44:46 -0500
Subject: [PATCH] Issue #2472409 by Dane Powell: Fixed undefined index in
views_rss_media_field_formatter_view().
---
views_rss_media.field.inc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/views_rss_media.field.inc b/views_rss_media.field.inc
index 32ef206..4eca063 100644
--- a/views_rss_media.field.inc
+++ b/views_rss_media.field.inc
@@ -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'];
}
--
2.1.0