X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fhtmlform%2FHTMLFormElement.php;h=fbef2651f6695c6a4283d39f26f8935e2e2ceda3;hb=8a2be2c599d6361cee2f93219cb4b8f03d2c8189;hp=2830b9c258e265734c4c0595ffe43a49619f341a;hpb=9ba178b8aa3aa93a5bba1d09cfa85527e8edfa8f;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/htmlform/HTMLFormElement.php b/includes/htmlform/HTMLFormElement.php index 2830b9c258..fbef2651f6 100644 --- a/includes/htmlform/HTMLFormElement.php +++ b/includes/htmlform/HTMLFormElement.php @@ -13,8 +13,8 @@ trait HTMLFormElement { public function initializeHTMLFormElement( array $config = [] ) { // Properties - $this->hideIf = isset( $config['hideIf'] ) ? $config['hideIf'] : null; - $this->modules = isset( $config['modules'] ) ? $config['modules'] : []; + $this->hideIf = $config['hideIf'] ?? null; + $this->modules = $config['modules'] ?? []; // Initialization if ( $this->hideIf ) {