Project

General

Profile

Revision 744612e0

ID744612e0d8412566b10f8ce0c34e350741cdb160
Parent df7eab6b
Child 8f9d4412

Added by Andreas Kohlbecker over 3 years ago

skipping authorteam retrieval for taxa having no sec reference

View differences:

modules/cdm_dataportal/theme/cdm_dataportal.taxon.theme
53 53

  
54 54
        $name = $taxonRelation->fromTaxon->name->titleCache;
55 55

  
56
        $authorteam = cdm_ws_get(CDM_WS_REFERENCE_AUTHORTEAM, $taxonRelation->fromTaxon->sec->uuid);
57
        $authorteam = $authorteam->titleCache;
56
        if(isset($taxonRelation->fromTaxon->sec)) {
57
          // taxa not always are have a sec reference (e.g. doubtful taxa)
58
          $authorteam = cdm_ws_get(CDM_WS_REFERENCE_AUTHORTEAM, $taxonRelation->fromTaxon->sec->uuid);
59
          $authorteam = $authorteam->titleCache;
60
        }
58 61

  
59 62
        if (!isset($misapplied[$name])) {
60 63
          // Render the first name found as representative for all others.

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)