Exclude a warning that is nearly all the time a false positive

This commit is contained in:
ldestailleur 2025-03-19 14:09:19 +01:00
parent a0ec0002f6
commit 66a79dba27
2 changed files with 2 additions and 8 deletions

View file

@ -95,13 +95,6 @@ if (!$user->hasRight('opensurvey', 'read')) {
// Definition of fields for list
$arrayfields = array();
// TODO
/* foreach ($arrayfields as $key => $val) {
// If $val['visible']==0, then we never show the field
if (!empty($val['visible'])) {
$arrayfields['t.'.$key] = array('label' => $val['label'], 'checked' => (($val['visible'] < 0) ? 0 : 1), 'enabled' => $val['enabled'], 'position' => $val['position']);
}
} */
// Extra fields
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_array_fields.tpl.php';
@ -540,7 +533,7 @@ include DOL_DOCUMENT_ROOT.'/core/tpl/list_print_total.tpl.php';
// If no record found
if ($num == 0) {
$colspan = 8;
foreach ($arrayfields as $key => $val) {
foreach ($arrayfields as $key => $val) { //
if (!empty($val['checked'])) {
$colspan++;
}

View file

@ -73,6 +73,7 @@ parameters:
ignoreErrors:
- '#.*phan-var#'
- '#^Expression "''…" on a separate line does not do anything\.$#'
- '#Empty array passed to foreach#'
internalErrorsCountLimit: 50
cache:
# nodesByFileCountMax: 512