Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
bcosca committed Sep 23, 2018
1 parent 45b0c4e commit e11ad22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion matrix.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function calendar($date='now',$first=0) {
$out=FALSE;
if (extension_loaded('calendar')) {
if (is_string($date))
$date=strotime($date);
$date=strtotime($date);
$parts=getdate($date);
$days=cal_days_in_month(CAL_GREGORIAN,$parts['mon'],$parts['year']);
$ref=date('w',strtotime(date('Y-m',$parts[0]).'-01'))+(7-$first)%7;
Expand Down

0 comments on commit e11ad22

Please sign in to comment.