--- brightcove_field/brightcove_field.module.orig	2011-11-14 22:34:26.000000000 +0800
+++ brightcove_field/brightcove_field.module	2011-11-14 22:34:37.000000000 +0800
@@ -261,6 +261,7 @@
   $field_name = $element['#field_name'];
   $field = field_info_field($field_name);
   $value = $element['#value'];
+  $label = isset($field['widget']['label']) ? $field['widget']['label'] : '';
   if (!empty($value)) {
     // Assign ID to the value.
     // 231289 [id:72431493001]
@@ -270,7 +271,7 @@
       // Matched ID, check if the video exists.
       $video = brightcove_video_load($id);
       if (is_null(brightcove_video_cache_get($id)) && $video->id != $id) {
-        form_error($element, t('%name: Found no valid video with that name. Please note that it might take several minutes after the video has been uploaded in Brightcove Studio to appear in the API.', array('%name' => t($field['widget']['label']))));
+        form_error($element, t('%name: Found no valid video with that name. Please note that it might take several minutes after the video has been uploaded in Brightcove Studio to appear in the API.', array('%name' => t($label))));
       }
     } else {
       // Didn't match ID, try looking up the video text at BC.
@@ -285,10 +286,10 @@
       }
       if (count($result) > 1) {
         // This title is ambiguous.
-        form_error($element, t('%name: Video title %title matched more than one video. In case of doubt, use text "title [id:ID_OF_THE_VIDEO]"', array('%title', $value, '%name' => t($field['widget']['label']))));
+        form_error($element, t('%name: Video title %title matched more than one video. In case of doubt, use text "title [id:ID_OF_THE_VIDEO]"', array('%title', $value, '%name' => t($label))));
       } else if (count($result) == 0) {
         // No video found.
-        form_error($element, t('%name: Found no valid video with that name. Please note that it might take several minutes after the video has been uploaded in Brightcove Studio to appear in the API.', array('%name' => t($field['widget']['label']))));
+        form_error($element, t('%name: Found no valid video with that name. Please note that it might take several minutes after the video has been uploaded in Brightcove Studio to appear in the API.', array('%name' => t($label))));
       } else {
         $id = $result[0]->id;
       }
