// Note that billable property is not part of the label. Instead, we intend to
// identify such records with a different color in week view.
static function makeRecordLabel($record) {
// Note that billable property is not part of the label. Instead, we intend to
// identify such records with a different color in week view.
static function makeRecordLabel($record) {
- if ($record['cf_1_value']) {
- if (!empty($label)) $label .= ' - ';
- $label .= $record['cf_1_value'];
- }
+ if (!empty($label) && !empty($record['cf_1_value'])) $label .= ' - ';
+ $label .= $record['cf_1_value'];