views_rss_media-2472409-1.patch 942 B

1234567891011121314151617181920212223242526
  1. From 343f3a90f3904e74732d0005ff037d5b51d2b416 Mon Sep 17 00:00:00 2001
  2. From: Dane Powell <git@danepowell.com>
  3. Date: Thu, 16 Apr 2015 08:44:46 -0500
  4. Subject: [PATCH] Issue #2472409 by Dane Powell: Fixed undefined index in
  5. views_rss_media_field_formatter_view().
  6. ---
  7. views_rss_media.field.inc | 2 +-
  8. 1 file changed, 1 insertion(+), 1 deletion(-)
  9. diff --git a/views_rss_media.field.inc b/views_rss_media.field.inc
  10. index 32ef206..4eca063 100644
  11. --- a/views_rss_media.field.inc
  12. +++ b/views_rss_media.field.inc
  13. @@ -180,7 +180,7 @@ function views_rss_media_field_formatter_view($entity_type, $entity, $field, $in
  14. // When generating a thumbnail for a video file,
  15. // let's process only thumbnail image details.
  16. - if ($item['type'] == 'video' && $display['type'] == 'media_thumbnail') {
  17. + if ($display['type'] == 'media_thumbnail' && $item['type'] == 'video') {
  18. $item = (array) $item['thumbnailfile'];
  19. }
  20. --
  21. 2.1.0