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 21:32:32 -06:00
committed by GitHub
co-authored by Tim Fry
parent dc748c2376
commit 4a8e148ccf
+2 -4
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);
}
}