Project

General

Profile

Revision 269e42e0

ID269e42e04ada9079ddb03cc8cf8fd64b303c2939
Parent b511fb13
Child 0207cf2c

Added by Patrick Plitzner about 3 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

Add picture from clipboard (Maximum size: 40 MB)