bug fix - music on hold path

This commit is contained in:
Tony Fernandez 2025-04-01 09:12:26 -04:00
parent 5c1be1a318
commit f0f5ff02b3
1 changed files with 2 additions and 3 deletions

View File

@ -989,13 +989,12 @@ if(!function_exists('path_join')) {
}
$prefix = null;
foreach ($paths as $path) {
foreach ($paths as $index => $path) {
if($prefix === null && !empty($path)) {
if(substr($path, 0, 1) == '/') $prefix = '/';
else $prefix = '';
}
$path = trim( $path, '/' );
$path = trim( $path, '\\' );
$paths[$index] = trim($path, '/\\');
}
if($prefix === null){