# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
--- a/entityreference_feeds/entityreference_feeds.module
+++ b/entityreference_feeds/entityreference_feeds.module
@@ -112,7 +112,7 @@
   }
   foreach (field_info_instances($entity_type, $bundle_name) as $field_name => $field_instance) {
     $info = field_info_field($field_name);
-    if ($info['type'] == 'entityreference') {
+    if ($info['type'] == 'entityreference' and !empty($info['settings']['handler_settings']['target_bundles'])) {
       $target_type = $info['settings']['target_type'];
       $target_bundles = $info['settings']['handler_settings']['target_bundles'];
       foreach ($target_bundles as $target_bundle) {
