Revision 0e533708
Added by Patric Plitzner over 9 years ago
- added null check
7.x/modules/cdm_dataportal/includes/pages.inc | ||
---|---|---|
284 | 284 |
// typelabel will contain the typeStatus |
285 | 285 |
$type_label = ''; |
286 | 286 |
$typeDesignationPager = cdm_ws_get(CDM_WS_OCCURRENCE . '/$0/specimenTypeDesignations', $specimenOrObservation->uuid); |
287 |
if (isset($typeDesignationPager)) { |
|
287 |
if (isset($typeDesignationPager) and isset($typeDesignationPager->records)) {
|
|
288 | 288 |
$type_status = array(); |
289 | 289 |
foreach ($typeDesignationPager->records as $typeDesignation) { |
290 | 290 |
if (isset($typeDesignation->typeStatus->representation_L10n)){ |
Also available in: Unified diff