Project

General

Profile

« Previous | Next » 

Revision 269e42e0

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($typeStatus){
68
                    $detail_html .= "<i>".$typeStatus."</i> of ";
69
                } else {
67
                if(empty($typeStatus) || $typeStatus == "_empty_"|| $typeStatus == ""){
70 68
                    $detail_html .= "<i>no type status set:</i> ";
69
                } else {
70
                    $detail_html .= "<i>".$typeStatus."</i> of ";
71 71
                }
72 72
                foreach($typedTaxa as $typedTaxon){
73 73
                    $detail_html .= $typedTaxon." ";

Also available in: Unified diff