Project

General

Profile

« Previous | Next » 

Revision b511fb13

Added by Patrick Plitzner over 5 years ago

ref #7686 Better way to check for empty string

View differences:

modules/cdm_dataportal/includes/occurrences.inc
64 64
        //typed taxa
65 65
        foreach ($specimen->types as $typeStatus => $typedTaxa) {
66 66
            if($specimen->types){
67
                if(!isset($typeStatus) || trim($typeStatus) === ''){
68
                    $detail_html .= "<i>no type status set:</i> ";
69
                }
70
                else{
67
                if($typeStatus){
71 68
                    $detail_html .= "<i>".$typeStatus."</i> of ";
69
                } else {
70
                    $detail_html .= "<i>no type status set:</i> ";
72 71
                }
73 72
                foreach($typedTaxa as $typedTaxon){
74 73
                    $detail_html .= $typedTaxon." ";

Also available in: Unified diff