X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fhtmlform%2FHTMLFormElement.php;h=fbef2651f6695c6a4283d39f26f8935e2e2ceda3;hb=35f00337816ed66a7ca8bb6eeb5fccf422ee4e1a;hp=2830b9c258e265734c4c0595ffe43a49619f341a;hpb=21a36e80464f364d894eb49b3073069fc87f97b1;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 ) {