Skip to content

Commit 98f86b4

Browse files
committed
Provided default value for parameter as per issue anuko#47.
1 parent cd4a454 commit 98f86b4

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

WEB-INF/templates/footer.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<br>
1313
<table cellspacing="0" cellpadding="4" width="100%" border="0">
1414
<tr>
15-
<td align="center">&nbsp;Anuko Time Tracker 1.13.11.3737 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
15+
<td align="center">&nbsp;Anuko Time Tracker 1.13.12.3738 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
1616
<a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
1717
<a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
1818
<a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>

plugins/MonthlyQuota.class.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ public function update($year, $month, $quota) {
5353
}
5454

5555
// get - obtains either a single month quota or an array of quotas for an entire year.
56-
public function get($year, $month) {
56+
// Month starts with 1 for January, not 0.
57+
public function get($year, $month = null) {
5758
if (is_null($month)){
5859
return $this->getMany($year);
5960
}

quotas.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
}
9494
}
9595

96-
// Returns monthly quotas where January is month 1, not 0.
96+
// Get monthly quotas where for the entire year.
9797
$monthsData = $quota->get($selectedYear);
9898

9999
$form = new Form('monthlyQuotasForm');

0 commit comments

Comments
 (0)