From c3ebda937848c1964c0806006e8f2b52655ac3fc Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 20 Dec 2021 15:05:11 -0700 Subject: [PATCH] Music on hold need recursive true because its creating the directory and another one with the sample rate. --- app/music_on_hold/music_on_hold.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/music_on_hold/music_on_hold.php b/app/music_on_hold/music_on_hold.php index 6f28d0b191..d2969f22e2 100644 --- a/app/music_on_hold/music_on_hold.php +++ b/app/music_on_hold/music_on_hold.php @@ -275,7 +275,7 @@ //check target folder, move uploaded file if (!is_dir($stream_path)) { - mkdir($stream_path, 0770, false); + mkdir($stream_path, 0770, true); } if (is_dir($stream_path)) { if (copy($stream_file_name_temp, $stream_path.'/'.$stream_file_name)) {