diff --git a/dev/build/phpstan/phpstan-baseline.neon b/dev/build/phpstan/phpstan-baseline.neon index e86882deb1d..2b8ebc6ee7b 100644 --- a/dev/build/phpstan/phpstan-baseline.neon +++ b/dev/build/phpstan/phpstan-baseline.neon @@ -10980,12 +10980,6 @@ parameters: count: 1 path: ../../../htdocs/don/info.php - - - message: '#^Variable \$projectstatic might not be defined\.$#' - identifier: variable.undefined - count: 6 - path: ../../../htdocs/don/list.php - - message: '#^Variable \$maxlength might not be defined\.$#' identifier: variable.undefined diff --git a/htdocs/don/index.php b/htdocs/don/index.php index 5e8f8d3e6b7..0b0a23a6e3e 100644 --- a/htdocs/don/index.php +++ b/htdocs/don/index.php @@ -4,7 +4,7 @@ * Copyright (C) 2005-2012 Regis Houssin * Copyright (C) 2019 Nicolas ZABOURI * Copyright (C) 2024-2025 MDW - * Copyright (C) 2024 Frédéric France + * Copyright (C) 2024-2025 Frédéric France * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -133,6 +133,12 @@ $dataseries = array(); $colorseries = array(); include DOL_DOCUMENT_ROOT.'/theme/'.$conf->theme.'/theme_vars.inc.php'; +/** + * @var string $badgeStatus0 + * @var string $badgeStatus1 + * @var string $badgeStatus6 + * @var string $badgeStatus9 + */ print ''; print ''; diff --git a/htdocs/don/list.php b/htdocs/don/list.php index 2c78516bd0b..717eab52a64 100644 --- a/htdocs/don/list.php +++ b/htdocs/don/list.php @@ -4,8 +4,8 @@ * Copyright (C) 2005-2012 Regis Houssin * Copyright (C) 2013 Cédric Salvador * Copyright (C) 2019 Thibault FOUCART - * Copyright (C) 2024 MDW - * Copyright (C) 2024 Frédéric France + * Copyright (C) 2024 MDW + * Copyright (C) 2024-2025 Frédéric France * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -208,6 +208,7 @@ $form = new Form($db); $now = dol_now(); $donationstatic = new Don($db); +$projectstatic = null; if (isModEnabled('project')) { $projectstatic = new Project($db); }