Simplified array structure as it changed when using the settings class

This commit is contained in:
FusionPBX 2023-09-19 11:40:18 -06:00 committed by GitHub
parent 24bdccdb0b
commit a7dce663a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 5 deletions

View File

@ -289,11 +289,9 @@
$email_settings = '';
$email_setting_array = $setting->get('email');
ksort($email_setting_array);
foreach ($email_setting_array as $name => $setting) {
foreach ($setting as $type => $value) {
if ($name == 'smtp_password') { $value = '[REDACTED]'; }
$email_settings .= $name.': '.$value."\n";
}
foreach ($email_setting_array as $name => $value) {
if ($name == 'smtp_password') { $value = '[REDACTED]'; }
$email_settings .= $name.': '.$value."\n";
}
//parse email and name