فهرست منبع

Testing non-instantiated objects

spficklin 13 سال پیش
والد
کامیت
93927c3c28
2فایلهای تغییر یافته به همراه8 افزوده شده و 0 حذف شده
  1. 2 0
      base/tripal_core/tripal_core.api.inc
  2. 6 0
      base/tripal_cv/obo_loader.php

+ 2 - 0
base/tripal_core/tripal_core.api.inc

@@ -840,6 +840,8 @@ function tripal_core_chado_get_foreign_key($table_desc,$field,$values, $options
  * @ingroup tripal_chado_api
  */
  function tripal_core_generate_chado_var($table, $values, $base_options=array()) {
+
+  $all = new stdClass();
   
   // get description for the current table----------------------------------------------------------
   $table_desc = module_invoke_all('chado_'.$table.'_schema');

+ 6 - 0
base/tripal_cv/obo_loader.php

@@ -65,6 +65,12 @@ function tripal_cv_load_obo_v1_2_url($obo_name,$url,$jobid = NULL,$is_new = 1){
    print "Downloading URL $url, saving to $temp\n";
    $url_fh = fopen($url,"r");
    $obo_fh = fopen($temp,"w");
+   if(!$url_fh){
+      tripal_cv_obo_quiterror("Unable to download the remote OBO file at $url. Could a firewall be blocking outgoing connections? ".
+            " if you are unable to download the file you may manually downlod the OBO file and use the web interface to ".
+            " specify the location of the file on your server.");
+      
+   }
    while(!feof($url_fh)){
       fwrite($obo_fh,fread($url_fh,255),255);
    }