]> wagnertech.de Git - timetracker.git/commitdiff
Provided default value for parameter as per issue #47.
authoranuko <support@anuko.com>
Wed, 10 Jan 2018 14:49:42 +0000 (14:49 +0000)
committeranuko <support@anuko.com>
Wed, 10 Jan 2018 14:49:42 +0000 (14:49 +0000)
WEB-INF/templates/footer.tpl
plugins/MonthlyQuota.class.php
quotas.php

index 3cff2af878d8bb7c94d349d4d30942663a057330..a6a31a1dba4cb5aaa106dc06e7e6640e4aa01303 100644 (file)
@@ -12,7 +12,7 @@
       <br>
       <table cellspacing="0" cellpadding="4" width="100%" border="0">
         <tr>
-          <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> |
+          <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> |
             <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>
index a42b78242f18798bbcbefe408b126363be45f563..8fff596b11b0c5b426d453c0712934ddcad23da4 100644 (file)
@@ -53,7 +53,8 @@ class MonthlyQuota {
   }
 
   // get - obtains either a single month quota or an array of quotas for an entire year.
-  public function get($year, $month) {
+  // Month starts with 1 for January, not 0.
+  public function get($year, $month = null) {
     if (is_null($month)){
       return $this->getMany($year);
     }
index d846ae25d79196f4c5449bb33941caea26486738..ac0998c5ef799805900c04e2fa68c320ae81ca86 100644 (file)
@@ -93,7 +93,7 @@ if ($request->isPost()){
   }
 }
 
-// Returns monthly quotas where January is month 1, not 0.
+// Get monthly quotas where for the entire year.
 $monthsData = $quota->get($selectedYear);
 
 $form = new Form('monthlyQuotasForm');