From e4eeea33b32b4d78d8d44993fdb2039eacd81c40 Mon Sep 17 00:00:00 2001 From: ppound Date: Wed, 4 Jan 2023 09:53:50 -0400 Subject: [PATCH] cast month and day to prevent white screens on My reservation tab using php8 --- reserve.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reserve.inc b/reserve.inc index fb15c44..efa7c6b 100644 --- a/reserve.inc +++ b/reserve.inc @@ -1091,7 +1091,7 @@ function reserve_which_year($month, $day) { // determine if this year or next year $yearnow = date('Y'); $absdaynow = date('z'); - $absdaydefault = date('z', mktime(0, 0, 0, $month, $day, $yearnow)); + $absdaydefault = date('z', mktime(0, 0, 0, (int)$month, (int)$day, $yearnow)); if ($absdaynow > $absdaydefault) { $year = $yearnow + 1; }