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

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