From 9ccff03d3e5791677e749fc18211387659e563c5 Mon Sep 17 00:00:00 2001 From: Lainow Date: Mon, 16 Dec 2024 11:52:02 +0100 Subject: [PATCH] Fix profile clone error --- inc/profile.class.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/inc/profile.class.php b/inc/profile.class.php index 7ddbd63..bc8df3a 100644 --- a/inc/profile.class.php +++ b/inc/profile.class.php @@ -50,6 +50,12 @@ static function preClone(Profile $srce, Array $input) { $input['helpdesk_item_type'] = []; } + if (!isset($input['managed_domainrecordtypes']) + || !is_array($input['managed_domainrecordtypes'])) { + + $input["managed_domainrecordtypes"] = []; + } + return $input; }