Admin: Add validation for multi-URLs with undefined settings in api_get_configuration_value(). Fix setting a default view for the administrative session list on one site of a multi-URL environment could break the list on the other sites

Author: @juan-cortizas-ponte
pull/4539/head
Juan Cortizas Ponte 3 years ago committed by GitHub
parent e1a30998c3
commit f6c7cd25c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      main/inc/lib/api.lib.php

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

Loading…
Cancel
Save