Fix PHP notice

pull/3383/head
Julio Montoya 6 years ago
parent c08eac43c3
commit dec96a69b6
  1. 5
      main/inc/lib/api.lib.php

@ -743,7 +743,10 @@ function api_get_path($path = '', $configuration = [])
$course_folder = 'courses/';
static $root_web = '';
$root_sys = $_configuration['root_sys'];
$root_sys = null;
if ($_configuration) {
$root_sys = $_configuration['root_sys'];
}
// If no $root_web has been set so far *and* no custom config has been passed to the function
// then re-use the previously-calculated (run-specific) $root_web and skip this complex calculation

Loading…
Cancel
Save