diff --git a/core/model/fieldtypes/Date.php b/core/model/fieldtypes/Date.php index 54b907319..86fe9ae18 100644 --- a/core/model/fieldtypes/Date.php +++ b/core/model/fieldtypes/Date.php @@ -321,7 +321,7 @@ class Date extends DBField { } function prior_monday($fyear, $fmonth, $fday){ - return date ("Y-m-d", mktime (0,0,0,$fmonth,$fday-weekday($fyear, $fmonth, $fday),$fyear)); + return date ("Y-m-d", mktime (0,0,0,$fmonth,$fday-$this->weekday($fyear, $fmonth, $fday),$fyear)); } /**