Minor: Update code documentation

pull/4909/head
Yannick Warnier 2 years ago
parent 52ae100f99
commit 34cac15cc5
  1. 4
      main/inc/lib/api.lib.php

@ -9150,7 +9150,7 @@ function api_get_configuration_value($variable)
// Check if variable exists
if (isset($_configuration[$variable])) {
if (is_array($_configuration[$variable]) && api_is_multiple_url_enabled() && is_int(array_keys($_configuration[$variable])[0])) {
// It has been configured for at least one sub URL so we will not return the complete variable
// It has been configured for at least one sub URL, so we will not return the complete variable
/*
* The idea is that if the first level key of the configuration variable is an int
* then it is a multiURL configuration and if it's a string then it's a configuration that is not multiURL.
@ -9160,7 +9160,7 @@ function api_get_configuration_value($variable)
* 1 => [17] // project_id = 1, STUDENT_BOSS = 17
* ]
* ];
* You do not want to enter in this bloc even if multiURL is activated because the option is configured globaly
* You do not want to enter this block even if multiURL is activated because the option is configured globally
* and you want to return the full array.
* The is_int is to consider only the option that are array and configured for multiURL
* which means there is an int as the first level key of the array.

Loading…
Cancel
Save