Project

General

Profile

« Previous | Next » 

Revision 2228f46b

Added by Andreas Kohlbecker almost 4 years ago

supressing 'collecting areas' label when not data is to be shown

View differences:

modules/cdm_dataportal/includes/occurrences.inc
477 477
              @_description_list_group_add($groups, cdm_occurrence_field_name_label('distanceToWaterSurface'), $min_max_markup);
478 478
            }
479 479

  
480
            if (isset($value->collectingAreas)) {
480
            if (isset($value->collectingAreas) && count($value->collectingAreas) > 0) {
481 481
              $area_representations = array();
482 482
              foreach ($value->collectingAreas as $area) {
483 483
                $area_representations[] = l($area->representation_L10n, path_to_named_area($area->uuid));

Also available in: Unified diff