Admin: Fix configuration variable recuperation for none multiURL plateforms -refs BT#20531

pull/4586/head
NicoDucou 3 years ago
parent 12809deb8f
commit 142514c95a
  1. 2
      main/inc/lib/api.lib.php

@ -9090,7 +9090,7 @@ function api_get_configuration_value($variable)
// Try to found element with id = 1 (master portal) // Try to found element with id = 1 (master portal)
if (array_key_exists(1, $_configuration[$variable])) { if (array_key_exists(1, $_configuration[$variable])) {
return $_configuration[$variable][1]; return $_configuration[$variable][1];
} else { } elseif (api_is_multiple_url_enabled()) {
// The value was there for other URLs but not the main URL nor the current URL // The value was there for other URLs but not the main URL nor the current URL
return null; return null;
} }

Loading…
Cancel
Save