X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=plugins%2FMonthlyQuota.class.php;h=8fff596b11b0c5b426d453c0712934ddcad23da4;hb=343bde69ae7c9d8efc8a814ce891a3f04b8f502c;hp=a42b78242f18798bbcbefe408b126363be45f563;hpb=fa05834dbdd4f642cac9c83773cd755ab5791e25;p=timetracker.git diff --git a/plugins/MonthlyQuota.class.php b/plugins/MonthlyQuota.class.php index a42b7824..8fff596b 100644 --- a/plugins/MonthlyQuota.class.php +++ b/plugins/MonthlyQuota.class.php @@ -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); }