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 c8bab89460
commit 1ad1c6e951

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,
);