remove is_numeric check for voicemail id (#6484)

Co-authored-by: Tim Fry <tim@voipstratus.com>
This commit is contained in:
frytimo
2022-10-11 23:32:32 -04:00
committed by GitHub
parent dc748c2376
commit 4a8e148ccf

View File

@@ -686,10 +686,8 @@
$array["voicemails"][$i]["voicemail_description"] = $description;
//make sure the voicemail directory exists
if (is_numeric($voicemail_id)) {
if (!file_exists($_SESSION['switch']['voicemail']['dir']."/default/".$_SESSION['domain_name']."/".$voicemail_id)) {
mkdir($_SESSION['switch']['voicemail']['dir']."/default/".$_SESSION['domain_name']."/".$voicemail_id, 0770, true);
}
if (!file_exists($_SESSION['switch']['voicemail']['dir']."/default/".$_SESSION['domain_name']."/".$voicemail_id)) {
mkdir($_SESSION['switch']['voicemail']['dir']."/default/".$_SESSION['domain_name']."/".$voicemail_id, 0770, true);
}
}