diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-09-10 15:53:41 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-09-10 15:53:41 +0000 |
| commit | 1e6f9b668f4e3d74996058f020415abc904041af (patch) | |
| tree | bc837e2c076b9bcc1012d92b9fd39dfd06f29ad3 /lib/extern | |
| parent | 6f3dc13d3e6dfcfe7a106df5efd28d085c0c6e40 (diff) | |
always use an array (why the heck would you pass a string if you expect an array?), fixes #4572
Merge request studip/studip!3384
Diffstat (limited to 'lib/extern')
| -rw-r--r-- | lib/extern/lib/ExternEdit.class.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/extern/lib/ExternEdit.class.php b/lib/extern/lib/ExternEdit.class.php index ea7d340..4c79f81 100644 --- a/lib/extern/lib/ExternEdit.class.php +++ b/lib/extern/lib/ExternEdit.class.php @@ -58,8 +58,11 @@ class ExternEdit { $this->form_values = $form_values; $this->edit_element = $edit_element; - if (is_array($form_values)) + if (is_array($form_values)) { $this->is_post_vars = TRUE; + } else { + $this->form_values = []; + } if ($faulty_values != "") $this->faulty_values = $faulty_values; |
