X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/fa05834dbdd4f642cac9c83773cd755ab5791e25..e29c21af272eaff37daaa820b487898445ffe652:/plugins/MonthlyQuota.class.php 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); }