FIX warnings with GETPOSTDATE and saverestore (#36886)
This commit is contained in:
parent
d4d3c2089e
commit
048d71dec3
1 changed files with 9 additions and 1 deletions
|
|
@ -1238,7 +1238,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'];
|
||||
|
|
|
|||
Loading…
Reference in a new issue