Project

General

Profile

« Previous | Next » 

Revision 744612e0

Added by Andreas Kohlbecker over 7 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