From 4a8e148ccf1993fb6bd1e289156283ce5117b7d6 Mon Sep 17 00:00:00 2001 From: frytimo Date: Tue, 11 Oct 2022 23:32:32 -0400 Subject: [PATCH] remove is_numeric check for voicemail id (#6484) Co-authored-by: Tim Fry --- app/extensions/extension_edit.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/extensions/extension_edit.php b/app/extensions/extension_edit.php index 9e0fe3aa2e..0298f074e6 100644 --- a/app/extensions/extension_edit.php +++ b/app/extensions/extension_edit.php @@ -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); } }