From 8063b9a8ef5daddb64a98d92cd6492dbfb7d7496 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 13 Nov 2021 17:18:21 +0100 Subject: [PATCH] fix PHP 8.0 TypeError: array_merge(): Argument #1 must be of type array, null given --- api/src/Etemplate/Widget/Link.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Etemplate/Widget/Link.php b/api/src/Etemplate/Widget/Link.php index 140d4c6488..82a60d3eeb 100644 --- a/api/src/Etemplate/Widget/Link.php +++ b/api/src/Etemplate/Widget/Link.php @@ -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'));