From 7fd8246ca573cceb1bb7eda3e82b2d7bcc4c05d5 Mon Sep 17 00:00:00 2001 From: Heshan Date: Thu, 21 Apr 2011 19:50:12 +0530 Subject: #1103942 by anglo array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() --- video.field.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video.field.inc b/video.field.inc index 6a3a53d..9f213a5 100644 --- a/video.field.inc +++ b/video.field.inc @@ -118,7 +118,7 @@ function video_field_prepare_view($entity_type, $entities, $field, $instances, $ // If there are no files specified at all, use the default. foreach ($entities as $id => $entity) { if (empty($items[$id]) && $field['settings']['default_video_thumbnail']) { - if ($file = file_load($field['settings']['default_video_thumbnail'])) { + if ($file = file_load($field['settings']['default_video_thumbnail']['fid'])) { $items[$id][0] = (array) $file + array( 'is_default' => TRUE, ); -- cgit v1.2.3