Commit 10f8279f authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Correction d'un warning

parent 88a8850d
Loading
Loading
Loading
Loading
+4 −11
Original line number Diff line number Diff line
@@ -18,7 +18,6 @@ class RechercheProcessus
    protected $showHisto = false;



    /**
     * @param string $critere
     * @param integer $limit
@@ -35,7 +34,6 @@ class RechercheProcessus
    }



    /**
     * @return bool
     */
@@ -45,7 +43,6 @@ class RechercheProcessus
    }



    /**
     * @param bool $showHisto
     *
@@ -59,7 +56,6 @@ class RechercheProcessus
    }



    /**
     * @param string $critere
     * @param integer $limit
@@ -72,7 +68,6 @@ class RechercheProcessus
    }



    private function sqlLocale(): string
    {
        $sql = "
@@ -105,12 +100,11 @@ class RechercheProcessus
    }



    private function sqlSource(): string
    {
        return "
        SELECT
          null id,
          NULL id,
          i.code,
          i.statut_id,
          i.nom_usuel,
@@ -122,7 +116,7 @@ class RechercheProcessus
          si.libelle statut,
          i.critere_recherche critere,
          i.annee_id,
          null histo_destruction
          NULL histo_destruction
        FROM
          src_intervenant i
          LEFT JOIN structure s ON s.id = i.structure_id
@@ -132,7 +126,6 @@ class RechercheProcessus
    }



    protected function makeKey(array $data, string $key): string
    {
        $resKey = $key;
@@ -144,7 +137,6 @@ class RechercheProcessus
    }



    private function rechercheGenerique($critere, $limit = 50, string $key = ':CODE', $onlyLocale = false)
    {
        if (strlen($critere) < 2) return [];
@@ -206,9 +198,10 @@ class RechercheProcessus
                    'destruction'      => $r['HISTO_DESTRUCTION'],
                ];
            } else {
                if ($intervenants[$k]['destruction'] && !$r['destruction']) {
                if ($intervenants[$k]['destruction'] && !$r['HISTO_DESTRUCTION']) {
                    $intervenants[$k]['destruction'] = null;
                }
                
                if ($intervenants[$k]['statut'] && !is_array($intervenants[$k]['statut'])) {
                    $intervenants[$k]['statut'] = [$intervenants[$k]['statut']];
                }