From c8163f835fd704c9000af7ad39248f1afface0ca Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms Date: Mon, 25 Mar 2024 21:41:17 +0100 Subject: fixes #3894 --- lib/extern/lib/ExternEdit.class.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/extern/lib/ExternEdit.class.php b/lib/extern/lib/ExternEdit.class.php index 4c79f81..8061ad1 100644 --- a/lib/extern/lib/ExternEdit.class.php +++ b/lib/extern/lib/ExternEdit.class.php @@ -51,11 +51,15 @@ class ExternEdit { var $width_2 = " width=\"80%\""; var $error_sign = "   *"; - function __construct(&$config, $form_values = "", $faulty_values = "", - $edit_element = "") { - + function __construct( + &$config, + $form_values = '', + $faulty_values = '', + $edit_element = "" + ) { $this->config =& $config; - $this->form_values = $form_values; + $this->form_values = is_array($form_values) ? $form_values : []; + $this->faulty_values = is_array($faulty_values) ? $faulty_values : []; $this->edit_element = $edit_element; if (is_array($form_values)) { -- cgit v1.0