Skip to content

Commit 3e665c5

Browse files
committed
Internal: Avoid notice by checking existence of variable in api_get_configuration_value()
1 parent 34cac15 commit 3e665c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/inc/lib/api.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9149,7 +9149,7 @@ function api_get_configuration_value($variable)
91499149

91509150
// Check if variable exists
91519151
if (isset($_configuration[$variable])) {
9152-
if (is_array($_configuration[$variable]) && api_is_multiple_url_enabled() && is_int(array_keys($_configuration[$variable])[0])) {
9152+
if (is_array($_configuration[$variable]) && api_is_multiple_url_enabled() && isset($_configuration[$variable][0]) && is_int(array_keys($_configuration[$variable])[0])) {
91539153
// It has been configured for at least one sub URL, so we will not return the complete variable
91549154
/*
91559155
* The idea is that if the first level key of the configuration variable is an int

0 commit comments

Comments
 (0)