diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-08-15 06:43:43 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+github@gmail.com> | 2024-08-15 12:57:35 +0200 |
| commit | 0e78bb5db1d94362d7294f66a6702ec7802987ae (patch) | |
| tree | f70314c0e7b07047cae8b852feaf244601a1b8f6 /lib/classes/AutoInsert.class.php | |
| parent | b5fdf66a84ab96795b0cceed7cac013146adf541 (diff) | |
check if variable exists before accessing it, fixes #4480
Closes #4480
Merge request studip/studip!3265
Diffstat (limited to 'lib/classes/AutoInsert.class.php')
| -rw-r--r-- | lib/classes/AutoInsert.class.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/classes/AutoInsert.class.php b/lib/classes/AutoInsert.class.php index b2168cc..132e5be 100644 --- a/lib/classes/AutoInsert.class.php +++ b/lib/classes/AutoInsert.class.php @@ -111,7 +111,7 @@ class AutoInsert foreach ($domains as $domain) { $key = $domain . '.' . $status; - if (is_array($this->settings[$key])) { + if (isset($this->settings[$key]) && is_array($this->settings[$key])) { foreach ($this->settings[$key] as $id => $value) { $settings[$id] = $value; } |
