Project

General

Profile

« Previous | Next » 

Revision f58a08fa

Added by Andreas Kohlbecker over 5 years ago

fixing minor bug related to taxonomic children block

View differences:

modules/cdm_dataportal/includes/taxon.inc
552 552
function compose_taxonomic_children($taxon_uuid){
553 553

  
554 554
  $render_array = array();
555

  
556
  $children = cdm_ws_get(CDM_WS_PORTAL_TAXONOMY_CHILDNODES_OF_TAXON, array(
557
    get_current_classification_uuid(),
558
    $taxon_uuid
559
    ));
560
  if($children){
561
    $taxonomic_children = theme('cdm_taxontree', array('tree' => $children));
562
    $render_array = markup_to_render_array($taxonomic_children);
555
  
556
  if($taxon_uuid) {
557
    $children = cdm_ws_get(CDM_WS_PORTAL_TAXONOMY_CHILDNODES_OF_TAXON, array(
558
      get_current_classification_uuid(),
559
      $taxon_uuid
560
      ));
561
    if($children){
562
      $taxonomic_children = theme('cdm_taxontree', array('tree' => $children));
563
      $render_array = markup_to_render_array($taxonomic_children);
564
    }
563 565
  }
564 566
  return $render_array;
565 567
}

Also available in: Unified diff