aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeshan <heshan@heidisoft.com>2011-04-21 19:50:12 +0530
committerHeshan <heshan@heidisoft.com>2011-04-21 19:50:12 +0530
commit7fd8246ca573cceb1bb7eda3e82b2d7bcc4c05d5 (patch)
tree0711e8a6c0a6e14db49310966b6ae6c72a63272e
parent84d815a3aa05e6887f598491cc9864d80bdfc0fb (diff)
downloadvideo-7fd8246ca573cceb1bb7eda3e82b2d7bcc4c05d5.tar.gz
video-7fd8246ca573cceb1bb7eda3e82b2d7bcc4c05d5.tar.bz2
#1103942 by anglo array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load()
-rw-r--r--video.field.inc2
1 files changed, 1 insertions, 1 deletions
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,
);