Skip to content
Snippets Groups Projects
Commit 87c7968d authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

check if variable exists before accessing it, fixes #4480

Closes #4480

Merge request studip/studip!3265
parent 46966cae
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment