clean code (#35167)

* clean code

* clean code
This commit is contained in:
Frédéric FRANCE 2025-09-01 22:26:41 +02:00 committed by GitHub
parent f9bf9d4888
commit d8ec14bc46
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 11 deletions

View file

@ -2772,12 +2772,6 @@ parameters:
count: 2
path: ../../../htdocs/comm/action/class/cactioncomm.class.php
-
message: '#^Variable \$TSystem might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../../htdocs/comm/action/class/cactioncomm.class.php
-
message: '#^Call to function is_array\(\) with array\<mixed\> will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType

View file

@ -2,6 +2,7 @@
/* Copyright (C) 2002-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2014 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2024-2025 MDW <mdeweerd@users.noreply.github.com>
* Copyright (C) 2025 Frédéric France <frederic.france@free.fr>
*
* 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
@ -189,13 +190,13 @@ class CActionComm
$resql = $this->db->query($sql);
if ($resql) {
$nump = $this->db->num_rows($resql);
$TSystem = array(
'id' => [],
'code' => [],
'all' => []
);
if ($nump) {
$idforallfornewmodule = 96;
$TSystem = array(
'id' => [],
'code' => [],
'all' => []
);
$TSystemAuto = array(
'id' => [],
'code' => [],