Project

General

Profile

« Previous | Next » 

Revision c0223d83

Added by Andreas Kohlbecker about 4 years ago

fix #7601 fixing timeperiod with only start value

View differences:

modules/cdm_dataportal/cdm_api/cdm_api.module
751 751
      $dateString = partialToDate($period->start, $stripZeros, $format);
752 752
    }
753 753
    if ($period->end) {
754
      $dateString .= (strlen($dateString) > 0 ? ' ' . t('to') . ' ' : '') . partialToDate($period->end, $stripZeros, $format);
754
      $end_str = partialToDate($period->end, $stripZeros, $format);
755
      $dateString .= ($dateString && $end_str > 0 ? ' ' . t('to') . ' ' : '') . $end_str;
755 756
    }
756 757
  }
757 758
  return $dateString;

Also available in: Unified diff