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 a99eb13066
commit 72a7039dce

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