fix PHP 8.0 TypeError: array_merge(): Argument #1 must be of type array, null given

This commit is contained in:
Ralf Becker 2021-11-13 17:18:21 +01:00
parent 7cd6284f0c
commit 8063b9a8ef

View File

@ -373,7 +373,7 @@ class Link extends Etemplate\Widget
$already = self::get_array($validated,$form_name);
if($already != null)
{
$value = array_merge($value,$already);
$value = array_merge((array)$value, $already);
}
// Automatically do link if user selected entry but didn't click 'Link' button
$link = self::get_array($content, self::form_name($cname, $this->id . '_link_entry'));