Fix warnings

This commit is contained in:
Laurent Destailleur 2023-11-17 03:06:24 +01:00
parent c2c610adbc
commit dd073a07b1
3 changed files with 3 additions and 9 deletions

View file

@ -184,14 +184,7 @@ class box_graph_propales_permonth extends ModeleBoxes
//$datatype2 = array('lines','bars');
$filenamenb = $dir."/".$prefix."propalsamountinyear-".$endyear.".png";
if (!empty($mode)) {
if ($mode == 'customer') {
$fileurlnb = DOL_URL_ROOT.'/viewimage.php?modulepart=propalstats&file=propalsamountinyear-'.$endyear.'.png';
}
if ($mode == 'supplier') {
$fileurlnb = DOL_URL_ROOT.'/viewimage.php?modulepart=propalstatssupplier&file=propalsamountinyear-'.$endyear.'.png';
}
}
$fileurlnb = DOL_URL_ROOT.'/viewimage.php?modulepart=propalstats&file=propalsamountinyear-'.$endyear.'.png';
$px2 = new DolGraph();
$mesg = $px2->isGraphKo();

View file

@ -560,7 +560,7 @@ if ((!defined('NOCSRFCHECK') && empty($dolibarr_nocsrfcheck) && getDolGlobalInt(
// Check a token is provided for all cases that need a mandatory token
// (all POST actions + all sensitive GET actions + all mass actions + all login/actions/logout on pages with CSRFCHECK_WITH_TOKEN set)
if (
$_SERVER['REQUEST_METHOD'] == 'POST' ||
(!empty($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] == 'POST') ||
$sensitiveget ||
GETPOSTISSET('massaction') ||
((GETPOSTISSET('actionlogin') || GETPOSTISSET('action')) && defined('CSRFCHECK_WITH_TOKEN'))

View file

@ -49,6 +49,7 @@ parameters:
- '#Undefined variable: \$error#'
- '#Undefined variable: \$errors#'
- '#Undefined variable: \$form#'
- '#has an unused parameter \$param#'
- '#Result of function fieldList#'
- '#Caught class Stripe#'
- '#Function llxHeader invoked with#'