Fix phpunit

This commit is contained in:
Laurent Destailleur 2020-09-22 15:31:09 +02:00
parent 6c06d2f0aa
commit fea6fca7d1
2 changed files with 3 additions and 4 deletions

View File

@ -504,7 +504,7 @@ function dol_get_last_day($year, $month = 12, $gm = false)
/** Return GMT time for last hour of a given GMT date (it removes hours, min and second part)
*
* @param int $dat
* @param int $date
* @return int Date for last hour of a given date
*/
function dol_get_last_hour($date)
@ -515,7 +515,7 @@ function dol_get_last_hour($date)
/** Return GMT time for first hour of a given GMT date (it removes hours, min and second part)
*
* @param int $dat
* @param int $date
* @return int Date for last hour of a given date
*/
function dol_get_first_hour($date)

View File

@ -381,8 +381,7 @@ if ((!defined('NOCSRFCHECK') && empty($dolibarr_nocsrfcheck) && !empty($conf->gl
setEventMessages('SecurityTokenHasExpiredSoActionHasBeenCanceledPleaseRetry', null, 'warnings');
//if ($conf->global->MAIN_FEATURES_LEVEL >= 1) setEventMessages('Unset POST and GET params by CSRF protection in main.inc.php (Token provided was not generated by the previous page).'."<br>\n".'$_SERVER[REQUEST_URI] = '.$_SERVER['REQUEST_URI'].' $_SERVER[REQUEST_METHOD] = '.$_SERVER['REQUEST_METHOD'].' GETPOST(token) = '.GETPOST('token', 'alpha').' $_SESSION[token] = '.$_SESSION['token'], null, 'warnings');
$savid = ((int) $_POST['id']);
//$savaction = preg_replace('/[^a-zA-Z0-9]/', '', $_POST['action']);
unset ($_POST);
unset($_POST);
//unset($_POST['action']);
unset($_POST['confirm']);
unset($_GET['confirm']);