Provided default value for parameter as per issue #47.
[timetracker.git] / plugins / MonthlyQuota.class.php
index a42b782..8fff596 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);
     }