Bug Fix - music on hold path (#7349)

This commit is contained in:
Antonio Fernandez
2025-04-01 11:10:53 -04:00
committed by GitHub
parent 5ed20f1c2f
commit 7040635baf
+2 -3
View File
@@ -989,13 +989,12 @@ if(!function_exists('path_join')) {
} }
$prefix = null; $prefix = null;
foreach ($paths as $path) { foreach ($paths as $index => $path) {
if($prefix === null && !empty($path)) { if($prefix === null && !empty($path)) {
if(substr($path, 0, 1) == '/') $prefix = '/'; if(substr($path, 0, 1) == '/') $prefix = '/';
else $prefix = ''; else $prefix = '';
} }
$path = trim( $path, '/' ); $paths[$index] = trim($path, '/\\');
$path = trim( $path, '\\' );
} }
if($prefix === null){ if($prefix === null){