]> wagnertech.de Git - timetracker.git/blobdiff - plugins/MonthlyQuota.class.php
Fixed availability of paid field checkbox on reports.
[timetracker.git] / plugins / MonthlyQuota.class.php
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);
     }