Fix "api_get_plugin_setting" function when multiple url is enabled.

pull/2487/head
jmontoyaa 7 years ago
parent 786a14c4b9
commit 3bd892bb7b
  1. 5
      main/inc/global.inc.php

@ -277,8 +277,13 @@ foreach ($result as & $row) {
if (isset($_setting[$key]) && is_string($_setting[$key])) { if (isset($_setting[$key]) && is_string($_setting[$key])) {
$_setting[$key] = array(); $_setting[$key] = array();
} }
if ($row['subkey'] == null) {
$_setting[$key][] = $row['selected_value']; $_setting[$key][] = $row['selected_value'];
$_plugins[$key][] = $row['selected_value']; $_plugins[$key][] = $row['selected_value'];
} else {
$_setting[$key][$row['subkey']] = $row['selected_value'];
$_plugins[$key][$row['subkey']] = $row['selected_value'];
}
} }
// Error reporting settings. // Error reporting settings.

Loading…
Cancel
Save