Skip to content
Snippets Groups Projects

3188860: Fix LibraryDiscoveryParser::buildByExtension() Notice

Closed Dirk Debrunner requested to merge issue/drupal-3188860:8.9.x into 8.9.x
@@ -200,9 +200,9 @@ public function buildByExtension($extension) {
}
// Determine the file asset URI.
else {
if ($source[0] === '/') {
if (isset($source[0]) && $source[0] === '/') {
// An absolute path maps to DRUPAL_ROOT / base_path().
if ($source[1] !== '/') {
if (isset($source[1]) && $source[1] !== '/') {
$source = substr($source, 1);
// Non core provided libraries can be in multiple locations.
if (strpos($source, 'libraries/') === 0) {
Loading