From 72e2e8acc64bf3500084e26cc6cf2291a9e9084e Mon Sep 17 00:00:00 2001 From: Silvio Date: Wed, 27 Jul 2011 18:02:23 -0300 Subject: Additional file_load fixes for #1103942 --- video.module | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'video.module') diff --git a/video.module b/video.module index bc5aa2f..36c630f 100644 --- a/video.module +++ b/video.module @@ -211,8 +211,8 @@ function video_thumb_process(&$element, &$form_state) { } // Setup our large thumbnail that is on the left. // @todo Add smaller video preview instead of thumbnail? - if (isset($file['thumbnail']) && !empty($file['thumbnail'])) { - $large_thumb = file_load($file['thumbnail']); + if (isset($file['thumbnail']) && !empty($file['thumbnail']['fid'])) { + $large_thumb = file_load($file['thumbnail']['fid']); } elseif (!empty($field['settings']['default_video_thumbnail']['fid'])) { $large_thumb = file_load($field['settings']['default_video_thumbnail']['fid']); @@ -750,4 +750,4 @@ function _video_object_to_array($data) { return $result; } return $data; -} \ No newline at end of file +} -- cgit v1.2.3