瀏覽代碼

fix variables presumably not ported from refactoring

Bradford Condon 7 年之前
父節點
當前提交
35a9c6e74d
共有 1 個文件被更改,包括 2 次插入2 次删除
  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");
          }
       }
     }