remove is_numeric check for voicemail id (#6484)
Co-authored-by: Tim Fry <tim@voipstratus.com>
This commit is contained in:
parent
dc748c2376
commit
4a8e148ccf
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue