Browse Source

fix variables presumably not ported from refactoring

Bradford Condon 7 years ago
parent
commit
35a9c6e74d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tripal/includes/TripalFieldDownloaders/TripalFieldDownloader.inc

+ 2 - 2
tripal/includes/TripalFieldDownloaders/TripalFieldDownloader.inc

@@ -324,7 +324,7 @@ abstract class TripalFieldDownloader {
     $this->initWrite($job);
 
     $num_handled = 0;
-    foreach ($bundle_collections as $bundle_collection) {
+    foreach ($this->collection_bundles as $bundle_collection) {
       $collection_bundle_id = $bundle_collection->collection_bundle_id;
       $bundle_name = $bundle_collection->bundle_name;
       $entity_ids = $bundle_collection->ids;
@@ -356,7 +356,7 @@ abstract class TripalFieldDownloader {
 
          $lines = $this->formatEntity($entity);
          foreach ($lines as $line) {
-           fwrite($fh, $line . "\r\n");
+           fwrite($this->fh, $line . "\r\n");
          }
       }
     }