diff options
author | Steffen Ritter | 2023-09-27 14:30:55 +0200 |
---|---|---|
committer | Steffen Ritter | 2023-09-27 14:30:55 +0200 |
commit | 8e82cf95b141d25e2aa60d7f1e3e0fe7be4138aa (patch) | |
tree | 1dea0ce68c40472f3e1d79bd751898970c2bf412 /modules-available/eventlog/pages/transports.inc.php | |
parent | [statistics_reporting] Report legacy VMware CPUs (diff) | |
download | slx-admin-8e82cf95b141d25e2aa60d7f1e3e0fe7be4138aa.tar.gz slx-admin-8e82cf95b141d25e2aa60d7f1e3e0fe7be4138aa.tar.xz slx-admin-8e82cf95b141d25e2aa60d7f1e3e0fe7be4138aa.zip |
[eventlog] Fix php notice (undefined index)
Diffstat (limited to 'modules-available/eventlog/pages/transports.inc.php')
-rw-r--r-- | modules-available/eventlog/pages/transports.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/eventlog/pages/transports.inc.php b/modules-available/eventlog/pages/transports.inc.php index b993900d..05143247 100644 --- a/modules-available/eventlog/pages/transports.inc.php +++ b/modules-available/eventlog/pages/transports.inc.php @@ -160,7 +160,7 @@ class SubPage } $entry['mailconfigs'] = []; foreach (Database::queryAll("SELECT configid, host, port, senderaddress FROM mail_config") as $row) { - $row['selected'] = $row['configid'] == $entry['data']['mail-config-id'] ? 'selected' : ''; + $row['selected'] = $row['configid'] == ($entry['data']['mail-config-id'] ?? []) ? 'selected' : ''; $entry['mailconfigs'][] = $row; } foreach (Database::queryAll("SELECT transportid, title FROM notification_backend") as $row) { |