diff options
| -rw-r--r-- | lib/extern/lib/ExternEdit.class.php | 12 |
1 files 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 = "<font size=\"4\" color=\"ff0000\"> <b>*</b></font>"; - 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)) { |
