// 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) {
- // TODO: debug this function.
global $user;
// Start with client.
if ($user->isPluginEnabled('cl'))
$label = $record['client'];
// Add project.
- $project = $record['project'] ? $record['project'] : '';
- if (!empty($label)) $label .= ' - ';
- $label .= $project;
+ if (!empty($label) && !empty($record['project'])) $label .= ' - ';
+ $label .= $record['project'];
// Add task.
- $task = $record['task'] ? $record['task'] : '';
- if (!empty($label)) $label .= ' - ';
- $label .= $task;
+ if (!empty($label) && !empty($record['task'])) $label .= ' - ';
+ $label .= $record['task'];
// Add custom field 1.
if ($user->isPluginEnabled('cf')) {
- 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'];
}
return $label;
<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.13.3.3694 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.13.3.3695 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
<a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
<a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
<a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>