Fix double settings see #8051

1.10.x
Julio Montoya 9 years ago
parent cfcba70979
commit de4fe039a4
  1. 7
      main/admin/settings.lib.php

@ -1185,11 +1185,18 @@ function generate_settings_form($settings, $settings_by_access_list)
$default_values = array();
$url_info = api_get_access_url($url_id);
$i = 0;
$addedSettings = [];
foreach ($settings as $row) {
if (in_array($row['variable'], array_keys($settings_to_avoid))) {
continue;
}
if (in_array($row['variable'], $addedSettings)) {
continue;
}
$addedSettings[] = $row['variable'];
if (!empty($_configuration['multiple_access_urls'])) {
if (api_is_global_platform_admin()) {
if ($row['access_url_locked'] == 0) {

Loading…
Cancel
Save