Project

General

Profile

« Previous | Next » 

Revision fab2c158

Added by Andreas Kohlbecker almost 8 years ago

fixing problem with appenden phrases in case of secreference being NULL

View differences:

modules/cdm_dataportal/includes/taxon.inc
72 72

  
73 73
        $name = $taxonRelation->fromTaxon->name->titleCache;
74 74

  
75
        $authorteam = $NULL_AUTHORTEAM;
75 76
        if(isset($taxonRelation->fromTaxon->sec)) {
76 77
          // taxa not always are have a sec reference (e.g. doubtful taxa)
77 78
          $authorteam = cdm_ws_get(CDM_WS_REFERENCE_AUTHORTEAM, $taxonRelation->fromTaxon->sec->uuid);
78 79
          $authorteam = $authorteam->titleCache;
79
          if(!$authorteam){
80
          /*if(!$authorteam){
80 81
            $authorteam = $NULL_AUTHORTEAM;
81
          }
82
          }*/
82 83
        }
83 84

  
84 85
        if (!isset($misapplied[$name])) {
......
92 93
        }
93 94

  
94 95
        // Collect all authors for this fullname.
95
        if (isset($authorteam)) {
96
        if (isset($authorteam) && $authorteam != $NULL_AUTHORTEAM) {
96 97
          $misapplied[$name]['authorteam'][$authorteam] = '';
97 98
          $joinedAuthorTeams[$authorteam] = 'sensu ' . theme('cdm_reference', array('reference' => $taxonRelation->fromTaxon->sec));
98 99
        }

Also available in: Unified diff