if ($user->getConfigOption('unit_totals_only'))
array_push($fields, "null as units");
else {
- $firstUnitThreshold = $user->getConfigInt('1st_unit_threshold');
- $minutesInUnit = $user->getConfigInt('minutes_in_unit');
+ $firstUnitThreshold = $user->getConfigInt('1st_unit_threshold', 0);
+ $minutesInUnit = $user->getConfigInt('minutes_in_unit', 15);
array_push($fields, "if(l.billable = 0 or time_to_sec(l.duration)/60 < $firstUnitThreshold, 0, ceil(time_to_sec(l.duration)/60/$minutesInUnit)) as units");
}
}
<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.18.31.4656 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.18.31.4658 | 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>
$cl_1st_unit_threshold = $request->getParameter('1st_unit_threshold');
$cl_totals_only = $request->getParameter('totals_only');
} else {
- $cl_minutes_in_unit = $user->getConfigInt('minutes_in_unit');
- $cl_1st_unit_threshold = $user->getConfigInt('1st_unit_threshold');
+ $cl_minutes_in_unit = $user->getConfigInt('minutes_in_unit', 15);
+ $cl_1st_unit_threshold = $user->getConfigInt('1st_unit_threshold', 0);
$cl_totals_only = $user->getConfigOption('unit_totals_only');
}