Preven overwritting global profile settings.

This commit is contained in:
FusionPBX 2022-09-15 23:37:47 -06:00 committed by GitHub
parent 410bab6d05
commit 864afee9c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -49,12 +49,12 @@ if ($domains_processed == 1) {
//removes settings from the array that are already in the database
$x = 0;
foreach($sofia_global_settings as $row) {
$x = 0;
$y = 0;
foreach ($array['sofia_global_settings'] as $sub_row) {
if ($row['sofia_global_setting_uuid'] == $sub_row['sofia_global_setting_uuid']) {
unset($array['sofia_global_settings'][$x]);
unset($array['sofia_global_settings'][$y]);
}
$x++;
$y++;
}
}