fix warnings (#35056)

This commit is contained in:
Frédéric FRANCE 2025-08-24 20:22:13 +02:00 committed by GitHub
parent 3b3274e15e
commit b58ea39b87
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1235,7 +1235,15 @@ function GETPOSTDATE($prefix, $hourTime = '', $gm = 'auto', $saverestore = '')
$hour = $minute = $second = 0;
}
if ($saverestore && !GETPOSTISSET($prefix . 'day') && !GETPOSTISSET($prefix . 'month') && !GETPOSTISSET($prefix . 'year')) {
if (
$saverestore
&& !GETPOSTISSET($prefix . 'day')
&& !GETPOSTISSET($prefix . 'month')
&& !GETPOSTISSET($prefix . 'year')
&& isset($_SESSION['DOLDATE_' . $saverestore . '_day'])
&& isset($_SESSION['DOLDATE_' . $saverestore . '_month'])
&& isset($_SESSION['DOLDATE_' . $saverestore . '_year'])
) {
$day = $_SESSION['DOLDATE_' . $saverestore . '_day'];
$month = $_SESSION['DOLDATE_' . $saverestore . '_month'];
$year = $_SESSION['DOLDATE_' . $saverestore . '_year'];