fix PHP 8.0 TypeError: Unsupported operand types: null + array

This commit is contained in:
Ralf Becker 2021-11-05 14:49:56 +01:00
parent 66d45452ab
commit 9fbd07e335

View File

@ -41,7 +41,7 @@ class File extends Etemplate\Widget
*/
public function __construct($xml='')
{
$this->bool_attr_default += array(
$this->bool_attr_default = ($this->bool_attr_default ?? []) + array(
'multiple' => false,
);