Make the mkdir recursive

This commit is contained in:
FusionPBX
2021-12-02 15:49:04 -07:00
committed by GitHub
parent a5a954d7fe
commit 76df5a03dc

View File

@@ -39,7 +39,7 @@ if ($domains_processed == 1) {
foreach($voicemails as $row) {
if (is_numeric($row['voicemail_id'])) {
if (!file_exists($_SESSION['switch']['voicemail']['dir']."/default/".$row['domain_name']."/".$row['voicemail_id'])) {
mkdir($_SESSION['switch']['voicemail']['dir']."/default/".$row['domain_name']."/".$row['voicemail_id'], 0770);
mkdir($_SESSION['switch']['voicemail']['dir']."/default/".$row['domain_name']."/".$row['voicemail_id'], 0770, true);
}
}
}