Adjust to real typings

This commit is contained in:
MDW 2024-03-25 22:15:57 +01:00
parent 37515f1154
commit e2b0295308
No known key found for this signature in database

View file

@ -688,8 +688,8 @@ function dol_get_first_day_week($day, $month, $year, $gm = false)
//print 'start_week='.$start_week.' tmparray[wday]='.$tmparray['wday'].' day offset='.$days.' seconds offset='.$seconds.'<br>';
//Get first day of week
$tmpdaytms = (int) date($tmparray[0]) - $seconds; // $tmparray[0] is day of parameters
$tmpday = (int) date("d", $tmpdaytms);
$tmpdaytms = (int) date((string) $tmparray['0']) - $seconds; // $tmparray[0] is day of parameters
$tmpday = idate("d", $tmpdaytms);
//Check first day of week is in same month than current day or not
if ($tmpday > $day) {