Browse Source

Added option to tripal_core_expand_chado_var to tell it to always return an array

spficklin 12 years ago
parent
commit
18c9f84eb2
1 changed files with 1 additions and 6 deletions
  1. 1 6
      tripal_core/api/tripal_core.api.inc

+ 1 - 6
tripal_core/api/tripal_core.api.inc

@@ -1655,12 +1655,7 @@ function tripal_core_generate_chado_var($table, $values, $base_options = array()
  */
 function tripal_core_expand_chado_vars($object, $type, $to_expand, $table_options = array()) {
   $base_table = $object->tablename;
-
-  $return_array = 0;
-  if(array_key_exists('return_array', $table_options)){
-    $return_array = 1;
-  }
-  
+ 
   // check to see if we are expanding an array of objects
   if (is_array($object)) {
     foreach ($object as $index => $o) {