diff --git a/htdocs/core/customreports.php b/htdocs/core/customreports.php index 5ab75d02fac..86352d2d86d 100644 --- a/htdocs/core/customreports.php +++ b/htdocs/core/customreports.php @@ -39,8 +39,11 @@ * @var Translate $langs * @var User $user * - * @var array $toselect + * @var ?int[] $toselect Items selected on page, only used to see if not empty here */ +' +@phan-var-force ?int[] $toselect +'; if (!defined('USE_CUSTOM_REPORT_AS_INCLUDE')) { require '../main.inc.php'; @@ -646,7 +649,7 @@ if (!defined('MAIN_CUSTOM_REPORT_KEEP_GRAPH_ONLY')) { foreach ($arrayofmesures as $key => $val) { $simplearrayofmesures[$key] = $arrayofmesures[$key]['label']; } - print $form->multiselectarray('search_measures', $simplearrayofmesures, $search_measures, 0, 0, 'minwidth300 widthcentpercentminusx', 1, 0, '', '', $langs->trans("Measures")); // Fill the array $arrayofmeasures with possible fields + print $form->multiselectarray('search_measures', $simplearrayofmesures, $search_measures, 0, 0, 'minwidth300 widthcentpercentminusx', 1, 0, '', '', $langs->transnoentitiesnoconv("Measures")); // Fill the array $arrayofmeasures with possible fields print ''; // XAxis