Index: ffpc_plugin_row_podcast.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/ffpc/ffpc_plugin_row_podcast.inc,v
retrieving revision 1.6
diff -u -r1.6 ffpc_plugin_row_podcast.inc
--- ffpc_plugin_row_podcast.inc	30 Dec 2008 21:40:27 -0000	1.6
+++ ffpc_plugin_row_podcast.inc	4 Jun 2009 13:41:52 -0000
@@ -79,48 +79,50 @@
     }
     $getid3 = new getID3;
     foreach ( $this->view->field as $id => $field ) {
-      foreach ( $item->{$field->content_field['field_name']} as $file ) {
-        $info = $getid3->analyze($file['filepath']);
-        $file_extra = array();
-        $file_extra[] = array(
-          'key' => 'enclosure',
-          'attributes'  =>  array(
-            'url'   => url( $file['filepath'], array('absolute'=>TRUE) ),
-            'length'  => $file['filesize'],
-            'type'    => $file['filemime'],
-          ),
-        );
-        $file_extra[] = array(
-          'key' => 'itunes:duration',
-          'value' => $info['playtime_string'],
-        );
-        $file_extra[] = array(
-          'key' => 'itunes:author',
-          'value' => $info['tags']['id3v2']['artist'][0],
-        );
-        
-        $file_extra[] = array(
-          'key' => 'itunes:subtitle',
-          'value' => str_replace('&amp;', '&', $item_subtitle),
-        );
-        $file_extra[] = array(
-          'key' => 'itunes:summary',
-          'value' => str_replace('&amp;', '&', $stripped_item_text),
-        );
-        $file_extra[] = array(
-          'key' => 'guid',
-          'value' => file_create_url($file['filepath']),
-          'attributes' => array('isPermaLink' => 'false'),
-        );
-        $file_extra = array_merge($extra, $file_extra);
-        /*
-         * The following function takes title, link, description and then
-         * all additional XML elements.  For the title we'll use the node
-         * title.  Link serves no real purpose in a podcast.  Description
-         * is overridden by the extra "subtitle" tag but we'll keep it for
-         * completeness with RSS and use the node teaser.
-        */
-        $output .= format_rss_item($item->title, $item->link, $item_text, $file_extra );
+      if ($field->content_field['widget']['type'] == 'filefield_widget') {
+        foreach ( $item->{$field->content_field['field_name']} as $file ) {
+          $info = $getid3->analyze($file['filepath']);
+          $file_extra = array();
+          $file_extra[] = array(
+            'key' => 'enclosure',
+            'attributes'  =>  array(
+              'url'   => url( $file['filepath'], array('absolute'=>TRUE) ),
+              'length'  => $file['filesize'],
+              'type'    => $file['filemime'],
+            ),
+          );
+          $file_extra[] = array(
+            'key' => 'itunes:duration',
+            'value' => $info['playtime_string'],
+          );
+          $file_extra[] = array(
+            'key' => 'itunes:author',
+            'value' => $info['tags']['id3v2']['artist'][0],
+          );
+          
+          $file_extra[] = array(
+            'key' => 'itunes:subtitle',
+            'value' => str_replace('&amp;', '&', $item_subtitle),
+          );
+          $file_extra[] = array(
+            'key' => 'itunes:summary',
+            'value' => str_replace('&amp;', '&', $stripped_item_text),
+          );
+          $file_extra[] = array(
+            'key' => 'guid',
+            'value' => file_create_url($file['filepath']),
+            'attributes' => array('isPermaLink' => 'false'),
+          );
+          $file_extra = array_merge($extra, $file_extra);
+          /*
+           * The following function takes title, link, description and then
+           * all additional XML elements.  For the title we'll use the node
+           * title.  Link serves no real purpose in a podcast.  Description
+           * is overridden by the extra "subtitle" tag but we'll keep it for
+           * completeness with RSS and use the node teaser.
+          */
+          $output .= format_rss_item($item->title, $item->link, $item_text, $file_extra );
+        }
       }
     }
     return $output;
